| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function analyze(SourceIterator $source, array $options) |
||
|
|
|||
| 47 | { |
||
| 48 | $result = []; |
||
| 49 | foreach ($source as $filename => $code) { |
||
| 50 | $ast = $this->parser->parse($code); |
||
| 51 | |||
| 52 | $issues = $this->getIssues($ast, [ |
||
| 53 | 'filename' => $filename |
||
| 54 | ]); |
||
| 55 | |||
| 56 | $result[$filename] = new AnalyzedFile($filename, $issues); |
||
| 57 | } |
||
| 58 | |||
| 59 | return $result; |
||
| 60 | } |
||
| 61 | |||
| 76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.