| 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 | 13 | private function getTypeDescription(ReflectionClass $class, ?Attribute\AbstractType $attribute): ?string |
|
| 19 | { |
||
| 20 | 13 | if ($attribute?->description) { |
|
| 21 | 5 | return $attribute->description; |
|
| 22 | } |
||
| 23 | |||
| 24 | 8 | if ($docComment = $class->getDocComment()) { |
|
| 25 | 7 | return DocBlockFactory::createInstance()->create($docComment)->getSummary() ?: null; |
|
| 26 | } |
||
| 27 | |||
| 28 | 1 | return null; |
|
| 29 | } |
||
| 31 |