Skip to content

Commit 8bf0087

Browse files
committed
Remove the $mStructs property
1 parent 7f300e6 commit 8bf0087

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

PHPCtags.class.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)