Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1062 | public static function create(DoctrineReader|ReaderInterface $reader = null): ReaderInterface |
|
16 | { |
||
17 | return match (true) { |
||
18 | 1062 | $reader instanceof ReaderInterface => $reader, |
|
19 | 20 | $reader instanceof DoctrineReader => new AnnotationReader($reader), |
|
|
|||
20 | 10 | $reader === null => new SelectiveReader([ |
|
21 | 10 | new AttributeReader(), |
|
22 | 1062 | new AnnotationReader(), |
|
23 | ]), |
||
27 |