| Conditions | 5 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 16 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 32 | protected function removeInvalidSelf(LoggerInterface $logger) |
||
| 33 | { |
||
| 34 | // Must be child of "object" element. |
||
| 35 | $parent = $this->getParent(); |
||
| 36 | if ($parent !== null && |
||
| 37 | $parent->getName() !== 'video' && |
||
| 38 | $parent->getName() !== 'audio') { |
||
| 39 | $logger->debug($this . ' must be a child of "video" or "audio" element.'); |
||
| 40 | |||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | return false; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |