Conditions | 4 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
88 | 1 | public function getElements() |
|
89 | { |
||
90 | 1 | $elements = $this->wrapped->getElements(); |
|
91 | 1 | if($this->getMax()>0 || $this->getMax()===-1){ |
|
92 | 1 | foreach ($elements as $k => $element) { |
|
93 | /** |
||
94 | * @var Element|ElementRef|ElementSingle|GroupRef $e |
||
95 | */ |
||
96 | 1 | $e = clone $element; |
|
97 | 1 | $e->setMax($this->getMax()); |
|
98 | 1 | $elements[$k] = $e; |
|
99 | } |
||
100 | } |
||
101 | 1 | return $elements; |
|
102 | } |
||
123 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.