@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * Extracts visibility |
134 | 134 | * |
135 | 135 | * @param ReflectedMethod $method |
136 | - * @param $n |
|
136 | + * @param integer $n |
|
137 | 137 | * @param TokenCollection $tokens |
138 | 138 | * @return $this |
139 | 139 | */ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Extracts state |
159 | 159 | * |
160 | 160 | * @param ReflectedMethod $method |
161 | - * @param $n |
|
161 | + * @param integer $n |
|
162 | 162 | * @param TokenCollection $tokens |
163 | 163 | * @return $this |
164 | 164 | */ |
@@ -262,6 +262,7 @@ discard block |
||
262 | 262 | * Extract the list of returned values |
263 | 263 | * |
264 | 264 | * @param ReflectedMethod $method |
265 | + * @param integer $n |
|
265 | 266 | * @return $this |
266 | 267 | */ |
267 | 268 | private function extractReturns(ReflectedMethod $method, $n, TokenCollection $tokens) { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | - * @return array |
|
166 | + * @return \Hal\Component\Token\TokenCollection |
|
167 | 167 | */ |
168 | 168 | public function getTokens() |
169 | 169 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | } |
366 | 366 | |
367 | 367 | /** |
368 | - * @param $class |
|
368 | + * @param string|null $class |
|
369 | 369 | * @return $this |
370 | 370 | */ |
371 | 371 | public function pushInstanciedClass($class) { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | } |
387 | 387 | |
388 | 388 | /** |
389 | - * @param $call |
|
389 | + * @param string $call |
|
390 | 390 | * @return $this |
391 | 391 | */ |
392 | 392 | public function pushInternalCall($call) |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | } |
405 | 405 | |
406 | 406 | /** |
407 | - * @param $call |
|
407 | + * @param string $call |
|
408 | 408 | * @return $this |
409 | 409 | */ |
410 | 410 | public function pushExternalCall($call) |
@@ -83,7 +83,7 @@ |
||
83 | 83 | /** |
84 | 84 | * Clean php source |
85 | 85 | * |
86 | - * @param $content |
|
86 | + * @param string $content |
|
87 | 87 | * @return string |
88 | 88 | */ |
89 | 89 | private function cleanup($content) { |
@@ -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 | } |
@@ -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 | } |