| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 3 | public function process(iterable $classDef, ClassDefinition $classDefinition, array $classList): void |
|
| 22 | { |
||
| 23 | 3 | $opts = [ |
|
| 24 | 3 | self::DEPRECATED => '@deprecated', |
|
| 25 | 3 | self::DESCRIPTION => null, |
|
| 26 | 3 | ]; |
|
| 27 | |||
| 28 | 3 | foreach ($opts as $opt => $prefix) { |
|
| 29 | 3 | $commentValue = $classDef[$opt] ?? false; |
|
| 30 | 3 | if (!$commentValue) { |
|
| 31 | 1 | continue; |
|
| 32 | } |
||
| 33 | |||
| 34 | 3 | $this->addComment($classDefinition, $commentValue, $prefix); |
|
| 35 | } |
||
| 52 |