| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | protected function generateInput(): string |
||
| 33 | { |
||
| 34 | $value = $this->getAttributeValue(); |
||
| 35 | |||
| 36 | if (!is_string($value) && $value !== null) { |
||
| 37 | throw new InvalidArgumentException('Text widget must be a string or null value.'); |
||
| 38 | } |
||
| 39 | |||
| 40 | $tag = $this->tag === null |
||
| 41 | ? Html::textInput($this->getInputName(), $value) |
||
| 42 | : $this->tag->name($this->getInputName())->value($value); |
||
| 43 | |||
| 44 | $tag = $this->prepareIdInInputTag($tag); |
||
| 45 | $tag = $this->preparePlaceholderInInputTag($tag); |
||
| 46 | |||
| 47 | return $tag->render(); |
||
| 48 | } |
||
| 50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.