Conditions | 5 |
Paths | 10 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
20 | 1 | public function rewind() |
|
21 | 1 | { |
|
22 | 1 | $shuffledIterator = new \ArrayIterator(); |
|
23 | 1 | $items = []; |
|
24 | 1 | foreach ($this->innerIterator as $key => $value) { |
|
25 | 1 | $items[] = $this->generateElement($key, $value, $this->innerIterator); |
|
26 | $this->min = $this->min < $value ? $this->min : $value; |
||
27 | $this->max = $this->max > $value ? $this->max : $value; |
||
28 | 1 | } |
|
29 | |||
30 | 1 | shuffle($items); |
|
31 | 1 | ||
32 | foreach ($items as $data) { |
||
33 | 1 | $shuffledIterator[$data->key] = $data->current; |
|
34 | } |
||
35 | $this->setInnerIterator($shuffledIterator); |
||
36 | } |
||
37 | |||
73 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.