Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
27 | 9 | protected static function annotations(array $annotations): array |
|
28 | { |
||
29 | 9 | foreach (static::ANNOTATIONS as $annotation => $handler) { |
|
30 | 9 | if (isset($annotations[$annotation])) { |
|
31 | continue; |
||
32 | } |
||
33 | |||
34 | 9 | $annotations[$annotation] = $handler; |
|
35 | } |
||
36 | |||
37 | 9 | return $annotations; |
|
38 | } |
||
39 | |||
51 |