Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | 4 | protected function removeInvalidSelf(LoggerInterface $logger) |
|
44 | { |
||
45 | // "table" must be parent. |
||
46 | 4 | $parent = $this->getParent(); |
|
47 | 4 | if ($parent !== null && $parent->getName() != 'table') { |
|
48 | 1 | $logger->debug($this . ' must be a child of the "table" element.'); |
|
49 | |||
50 | 1 | return true; |
|
51 | } |
||
52 | |||
53 | 3 | return false; |
|
54 | } |
||
55 | } |
||
56 |