Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
50 | 4 | public function process(array $notations, string $value): array |
|
51 | { |
||
52 | 4 | if (!preg_match($this->regexp, $value, $matches)) { |
|
53 | 1 | throw new PhpdocException("Failed to parse '@{$this->name} $value': invalid syntax"); |
|
54 | } |
||
55 | |||
56 | 3 | $notations[$this->name] = $matches; |
|
57 | |||
58 | 3 | return $notations; |
|
59 | } |
||
61 |