| Conditions | 4 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 14 | protected function doClean(LoggerInterface $logger) |
||
| 15 | { |
||
| 16 | $footer = new Footer($this->configuration, 'footer'); |
||
| 17 | $header = new Header($this->configuration, 'header'); |
||
| 18 | $main = new Main($this->configuration, 'main'); |
||
| 19 | if ($this->hasAncestor($footer) || |
||
| 20 | $this->hasAncestor($header) || |
||
| 21 | $this->hasAncestor($main)) { |
||
| 22 | $logger->debug('Removing ' . $this . '. Element "header" should not be a descendant of "footer", "header", or "main" elements.'); |
||
| 23 | |||
| 24 | return false; |
||
| 25 | } |
||
| 26 | |||
| 27 | return true; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |