Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
19 | 1 | protected function getAllowedAttributes() |
|
20 | { |
||
21 | $embedAllowedAttributes = array( |
||
22 | 1 | '/^src$/i' => Attribute::URI, |
|
23 | 1 | '/^type$/i' => Attribute::CS_STRING, |
|
24 | 1 | '/^name$/i' => Attribute::CS_STRING, |
|
25 | '/^[a-z_-]$/i' => Attribute::CS_STRING |
||
26 | 1 | ); |
|
27 | |||
28 | 1 | return array_merge( |
|
29 | 1 | $embedAllowedAttributes, |
|
30 | 1 | parent::getAllowedAttributes() |
|
31 | 1 | ); |
|
32 | } |
||
33 | |||
39 |