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