| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 14 | 1 | protected function getAllowedAttributes() |
|
| 15 | { |
||
| 16 | $scriptAllowedAttributes = array( |
||
| 17 | 1 | '/^src$/i' => Element::ATTR_URI, |
|
| 18 | 1 | '/^type$/i' => Element::ATTR_CS_STRING, |
|
| 19 | 1 | '/^charset$/i' => Element::ATTR_CS_STRING, |
|
| 20 | 1 | '/^async$/i' => Element::ATTR_BOOL, |
|
| 21 | 1 | '/^defer$/i' => Element::ATTR_BOOL, |
|
| 22 | 1 | '/^crossorigin$/i' => Element::ATTR_CS_STRING, |
|
| 23 | '/^nonce$/i' => Element::ATTR_CS_STRING |
||
| 24 | 1 | ); |
|
| 25 | |||
| 26 | 1 | return array_merge( |
|
| 27 | 1 | $scriptAllowedAttributes, |
|
| 28 | 1 | parent::getAllowedAttributes() |
|
| 29 | 1 | ); |
|
| 30 | } |
||
| 31 | } |
||
| 32 |