| Conditions | 4 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 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 |