Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public static function parseFile(string $filename, string $extension): array { |
||
14 | $pattern = '/' . self::$delimiter . '(.+?)' . self::$delimiter . '(.+?)' . self::$delimiter . 'end' . self::$delimiter . '/s'; |
||
15 | $templateString = self::importFile($filename, $extension); |
||
|
|||
16 | \preg_match_all($pattern, $templateString, $templateArray); |
||
17 | for ($i = 0; $i < count($templateArray[0]); $i++) { |
||
18 | self::$parsedJs[$templateArray[1][$i]] = $templateArray[2][$i]; |
||
19 | } |
||
20 | return $templateArray; |
||
21 | } |
||
28 |
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.