| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 9 | public function __construct($path) |
|
| 32 | { |
||
| 33 | 9 | parent::__construct($path); |
|
| 34 | 9 | for ($i = 0; $i < 100; ++$i) { |
|
| 35 | 9 | $segment = $this->path . '/' . sprintf($this->segmentName, $i); |
|
| 36 | 9 | if (file_exists($segment)) { |
|
| 37 | 9 | $this->segments[] = (array) include $segment; |
|
| 38 | 9 | } |
|
| 39 | 9 | } |
|
| 40 | 9 | } |
|
| 41 | |||
| 55 |
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.