| Conditions | 7 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public static function buildRaw(NodeList &$list):string |
||
| 14 | { |
||
| 15 | $result = ''; |
||
| 16 | if ($list->count()) { |
||
| 17 | self::litteralStripTrailing($list); |
||
| 18 | $first = $list->shift(); |
||
| 19 | $refIndent = $first->indent ?? 0; |
||
| 20 | $result = substr($first->raw, $first->indent); |
||
| 21 | foreach ($list as $key => $child) { |
||
| 22 | if ($child->value instanceof NodeList) { |
||
| 23 | $val = parent::buildLitt($child->value); |
||
|
|
|||
| 24 | } else { |
||
| 25 | if ($child instanceof NodeComment && !$child->identifier) { |
||
| 26 | Builder::$_root->addComment($child->line, $child->value); |
||
| 27 | } |
||
| 28 | $val = $child instanceof NodeBlank ? "" : substr($child->raw, $refIndent); |
||
| 29 | } |
||
| 30 | $result .= $val; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | return $result; |
||
| 34 | } |
||
| 35 | } |
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.