| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 4 | public function getSuitableParent(bool $checkName = true, array $additionalTags = [], int $maxDeep = self::MAX_DEEP, bool $strict = false): ?AbstractNodeHandler |
|
| 24 | { |
||
| 25 | 4 | if (!$strict) { |
|
| 26 | 4 | $enumerationTag = $this->getStrictParent(AbstractDocument::TAG_ENUMERATION); |
|
| 27 | 4 | if ($enumerationTag instanceof TagEnumeration) { |
|
| 28 | 2 | return $enumerationTag; |
|
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | 4 | return parent::getSuitableParent($checkName, $additionalTags, $maxDeep, $strict); |
|
| 33 | } |
||
| 43 |