| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 16 | protected function getAllowedAttributes() |
||
| 17 | { |
||
| 18 | $trackAllowedAttributes = array( |
||
| 19 | '/^kind$/i' => Element::ATTR_CS_STRING, |
||
| 20 | '/^src$/i' => Element::ATTR_URI, |
||
| 21 | '/^srclang$/i' => Element::ATTR_CS_STRING, |
||
| 22 | '/^label$/i' => Element::ATTR_CS_STRING, |
||
| 23 | '/^default$/i' => Element::ATTR_BOOL |
||
| 24 | ); |
||
| 25 | |||
| 26 | return array_merge( |
||
| 27 | $trackAllowedAttributes, |
||
| 28 | parent::getAllowedAttributes() |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 47 |