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