Skip to content

Commit

Permalink
updated getTreeFromFile to use new method
Browse files Browse the repository at this point in the history
  • Loading branch information
GeeH committed Jun 26, 2015
1 parent f98ead7 commit 42ccbb2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Reflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ public function reflect($className)
*/
public function reflectClassFromFile($className, $filename)
{
$fileContent = file_get_contents($filename);

$parser = new Parser(new Lexer);
$ast = $parser->parse($fileContent);

$classes = $this->reflectClassesFromTree($ast);
$classes = $this->getClassesFromFile($filename);

foreach ($classes as $class) {
if ($class->getName() == $className) {
Expand Down

0 comments on commit 42ccbb2

Please sign in to comment.