Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | 12 | private function getTypeDescription(ReflectionClass $class, ?Attribute\AbstractType $attribute): ?string |
|
19 | { |
||
20 | 12 | if ($attribute?->description) { |
|
21 | 5 | return $attribute->description; |
|
22 | } |
||
23 | |||
24 | 7 | if ($docComment = $class->getDocComment()) { |
|
25 | 6 | return DocBlockFactory::createInstance()->create($docComment)->getSummary() ?: null; |
|
26 | } |
||
27 | |||
28 | 1 | return null; |
|
29 | } |
||
31 |