| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 4 | public function renderBlock(FieldInterface $field, DOMElement $element) |
|
| 23 | { |
||
| 24 | 4 | if (!$field instanceof Select) { |
|
| 25 | 1 | throw new InvalidArgumentException('Must be a Del\Form\Field\Select'); |
|
| 26 | } |
||
| 27 | 3 | foreach ($field->getOptions() as $value => $label) { |
|
| 28 | 3 | $option = $this->processOption($field, $value, $label); |
|
| 29 | 3 | $element->appendChild($option); |
|
| 30 | } |
||
| 31 | 3 | return $element; |
|
| 32 | } |
||
| 33 | |||
| 49 | } |
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.