| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | 3 | private function search(string $name): XmlElement |
|
| 56 | { |
||
| 57 | 3 | foreach ($this->getElements() as $element) { |
|
| 58 | 3 | if ($element->getName() === $name) { |
|
| 59 | 3 | return $element; |
|
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | 3 | $element = new XmlElement($name); |
|
| 64 | 3 | $this->appendElement($element); |
|
| 65 | |||
| 66 | 3 | return $element; |
|
| 67 | } |
||
| 68 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.