File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ class PHPCtags
77
88 private $ mParser ;
99
10- private $ mStructs ;
11-
1210 private $ mOptions ;
1311
1412 public function __construct ($ file , $ options =array ())
@@ -25,7 +23,6 @@ public function __construct($file, $options=array())
2523 'i ' => 'interface ' ,
2624 );
2725 $ this ->mParser = new PHPParser_Parser (new PHPParser_Lexer );
28- $ this ->mStructs = $ this ->mParser ->parse (file_get_contents ($ this ->mFile ));
2926 $ this ->mOptions = $ options ;
3027 }
3128
@@ -220,6 +217,7 @@ private function render($structs)
220217
221218 public function export ()
222219 {
223- echo $ this ->render ($ this ->struct ($ this ->mStructs ));
220+ $ structs = $ this ->struct ($ this ->mParser ->parse (file_get_contents ($ this ->mFile )));
221+ echo $ this ->render ($ structs );
224222 }
225223}
You can’t perform that action at this time.
0 commit comments