@@ -80,8 +80,7 @@ |
||
80 | 80 | foreach($tokens as $token) { |
81 | 81 | if($this->tokenType->isOperator($token)) { |
82 | 82 | $this->operators[] = $token; |
83 | - } |
|
84 | - else if($this->tokenType->isOperand($token)) { |
|
83 | + } else if($this->tokenType->isOperand($token)) { |
|
85 | 84 | $this->operands[] = $token; |
86 | 85 | } |
87 | 86 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * Inventories tokens |
61 | 61 | * |
62 | - * @param array $tokens |
|
62 | + * @param \SplFixedArray $tokens |
|
63 | 63 | * @return $this |
64 | 64 | */ |
65 | 65 | private function inventory($tokens) |
@@ -19,7 +19,9 @@ |
||
19 | 19 | $files = array_merge(rglob('*.php'), rglob('*.twig'), rglob('*.json'), rglob('*.pp')); |
20 | 20 | $exclude = '!(.git)|(.svn)|(bin)|(tests)|(Tests)|(phpmetrics)!'; |
21 | 21 | foreach($files as $file) { |
22 | - if(preg_match($exclude, $file)) continue; |
|
22 | + if(preg_match($exclude, $file)) { |
|
23 | + continue; |
|
24 | + } |
|
23 | 25 | $path = str_replace(__DIR__.'/', '', $file); |
24 | 26 | $phar->addFromString($path, file_get_contents($file)); |
25 | 27 | } |