| Conditions | 4 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 88 | 3 | public function getElements() |
|
| 89 | { |
||
| 90 | 3 | $elements = $this->wrapped->getElements(); |
|
| 91 | 3 | if($this->getMax()>0 || $this->getMax()===-1){ |
|
| 92 | 3 | foreach ($elements as $k => $element) { |
|
| 93 | /** |
||
| 94 | * @var Element|ElementRef|ElementSingle|GroupRef $e |
||
| 95 | */ |
||
| 96 | 3 | $e = clone $element; |
|
| 97 | 3 | $e->setMax($this->getMax()); |
|
| 98 | 3 | $elements[$k] = $e; |
|
| 99 | 1 | } |
|
| 100 | 1 | } |
|
| 101 | 3 | 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.