@@ -332,7 +332,8 @@ |
||
| 332 | 332 | |
| 333 | 333 | $match = null; |
| 334 | 334 | foreach ($Statements as $Statement) { |
| 335 | - if ($Statement->command === 'uses' || $Statement->command === 'see') { //@todo either one, not both? |
|
| 335 | + if ($Statement->command === 'uses' || $Statement->command === 'see') { |
|
| 336 | +//@todo either one, not both? |
|
| 336 | 337 | if (preg_match('/^((?:\\w+)|\$this)(?:(::|->)(\\w+))?(?:\\(\\))?$/', strtolower($Statement->data), $match) === 1) { |
| 337 | 338 | if (count($match) >= 3) { |
| 338 | 339 | $Class = null; |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->Preprocessor = new Preprocessor(self::COMMENT_TAG); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function addDirs(Array $dirs) |
|
| 65 | + public function addDirs(array $dirs) |
|
| 66 | 66 | { |
| 67 | 67 | foreach ($dirs as $dir) { |
| 68 | 68 | $this->common_dirs[] = realpath($dir); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return $Statements; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - public function parse($file, Array $dirs = array(), Array $defines = array()) |
|
| 97 | + public function parse($file, array $dirs = array(), array $defines = array()) |
|
| 98 | 98 | { |
| 99 | 99 | $this->dirs = $this->common_dirs; |
| 100 | 100 | foreach ($dirs as $dir) { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | - private function parseFiles(Array $files, Array $defines = array()) |
|
| 280 | + private function parseFiles(array $files, array $defines = array()) |
|
| 281 | 281 | { |
| 282 | 282 | $this->files_queued = $files; |
| 283 | 283 | |