Conditions | 5 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
39 | private function extractRawTokens($text): array |
||
40 | { |
||
41 | \preg_match_all('/\$\{(([A-Za-z_\-]+\.?)+)\}/', $text, $matches); |
||
42 | |||
43 | if (isset($matches[0]) && !empty($matches[0]) && \is_array($matches[0])) { |
||
44 | if (false !== $return = \array_combine($matches[0], $matches[1])) { |
||
45 | return $return; |
||
46 | } |
||
47 | } |
||
48 | |||
49 | return []; |
||
50 | } |
||
52 |