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