Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
29 | protected function doClean(LoggerInterface $logger) |
||
30 | { |
||
31 | if ($this->configuration->get('clean-strategy') != Configuration::CLEAN_STRATEGY_LENIENT) { |
||
32 | // "colgroup" must be parent. |
||
33 | $parent = $this->getParent(); |
||
34 | if ($parent !== null && $parent->getName() != 'colgroup') { |
||
35 | $logger->debug('Element "col" must be a child of the "colgroup" element.'); |
||
36 | |||
37 | return false; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | return true; |
||
42 | } |
||
43 | } |
||
44 |