| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | |||
| 16 | 2 | return $node->attributes->getNamedItem($name)->nodeValue ?? $default; |
|
|
|
|||
| 17 | } |
||
| 18 | |||
| 19 | 15 | public function readAttrHydrate(string $name = 'text', $default = '', DOMNode $node = null) |
|
| 20 | { |
||
| 21 | 15 | $value = $this->readAttr($name, $default, $node); |
|
| 22 | |||
| 23 | 15 | if (!$value) { |
|
| 24 | 2 | return $value; |
|
| 25 | } |
||
| 26 | |||
| 27 | 14 | return Util::hydrate($this->store, $value); |
|
| 28 | } |
||
| 29 | |||
| 30 | 15 | public function readAttrText(string $name = 'text', $default = '', DOMNode $node = null) |
|
| 31 | { |
||
| 41 |
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.