@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Set the parser |
114 | 114 | * |
115 | - * @param Parser $parser |
|
115 | + * @param ParserFactory $parser |
|
116 | 116 | * @return Obfuscator |
117 | 117 | */ |
118 | 118 | public function setParser(ParserFactory $parser) |
@@ -217,7 +217,8 @@ discard block |
||
217 | 217 | /** |
218 | 218 | * Get the file list |
219 | 219 | * |
220 | - * @return SplFileInfo |
|
220 | + * @param string $directory |
|
221 | + * @return RegexIterator |
|
221 | 222 | **/ |
222 | 223 | private function getFiles($directory) |
223 | 224 | { |
@@ -10,13 +10,9 @@ |
||
10 | 10 | |
11 | 11 | use Naneau\Obfuscator\Obfuscator\Event\File as FileEvent; |
12 | 12 | use Naneau\Obfuscator\Obfuscator\Event\FileError as FileErrorEvent; |
13 | - |
|
14 | 13 | use PhpParser\NodeTraverserInterface as NodeTraverser; |
15 | - |
|
16 | 14 | use PhpParser\ParserFactory; |
17 | -use PhpParser\Lexer; |
|
18 | 15 | use PhpParser\PrettyPrinter\Standard as PrettyPrinter; |
19 | - |
|
20 | 16 | use Symfony\Component\EventDispatcher\EventDispatcher; |
21 | 17 | |
22 | 18 | use \RegexIterator; |