Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | 6 | private function getAnnotationParameters(string $comment): array |
|
41 | 6 | { |
|
42 | 6 | $result = []; |
|
43 | 3 | $matches = []; |
|
44 | preg_match_all("/@inject \\\\?([\w\d\\\\]*) \\$([\w\d]*)/", $comment, $matches, PREG_SET_ORDER); |
||
45 | 6 | foreach ($matches as $match) { |
|
46 | $result[$match[2]] = $match[1]; |
||
47 | } |
||
48 | return $result; |
||
49 | } |
||
65 |