| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 4 | protected function removeInvalidSelf(LoggerInterface $logger) : bool |
|
| 32 | { |
||
| 33 | // "tr" must be parent. |
||
| 34 | 4 | $parent = $this->getParent(); |
|
| 35 | 4 | if ($parent !== null && !$parent instanceof Tr) { |
|
| 36 | 1 | $logger->debug('Removing ' . $this . '. Must be a child of "tr" element.'); |
|
| 37 | |||
| 38 | 1 | return true; |
|
| 39 | } |
||
| 40 | |||
| 41 | 3 | return false; |
|
| 42 | } |
||
| 43 | } |
||
| 44 |