| 1 | <?php |
||
| 15 | class Analyzer implements MessageProviderAwareInterface |
||
| 16 | { |
||
| 17 | |||
| 18 | use MessageProviderAwareTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Parser |
||
| 22 | */ |
||
| 23 | protected $parser; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var FlawDetector |
||
| 27 | */ |
||
| 28 | protected $flawDetector; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Parser $parser |
||
| 32 | * @param FlawDetector $flawDetector |
||
| 33 | */ |
||
| 34 | public function __construct(Parser $parser, FlawDetector $flawDetector) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * |
||
| 42 | * @param SourceIterator $source |
||
| 43 | * @param array $options |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function analyze(SourceIterator $source, array $options) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param $ast |
||
| 64 | * @param array $data |
||
| 65 | * @return Issue[] |
||
| 66 | */ |
||
| 67 | protected function getIssues($ast, array $data) |
||
| 74 | |||
| 75 | } |
||
| 76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.