| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function build(Insert $insert) { |
||
| 49 | $indexer = new Indexer |
||
| 50 | ( $this->log |
||
| 51 | , $this->parser |
||
| 52 | , $insert |
||
| 53 | ); |
||
| 54 | foreach ($this->schemas as $schema) { |
||
| 55 | assert('$schema instanceof \Lechimp\Dicto\Rules\Schema'); |
||
| 56 | $schema->register_listeners($indexer); |
||
| 57 | } |
||
| 58 | return $indexer; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.