Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | protected function getAllowedAttributes() |
||
12 | { |
||
13 | $linkAllowedAttributes = array( |
||
14 | '/^href$/i' => Element::ATTR_URI, |
||
15 | '/^crossorigin$/i' => Element::ATTR_CS_STRING, |
||
16 | '/^rel$/i' => Element::ATTR_CS_STRING, |
||
17 | '/^media$/i' => Element::ATTR_CS_STRING, |
||
18 | '/^hreflang$/i' => Element::ATTR_CS_STRING, |
||
19 | '/^type$/i' => Element::ATTR_CS_STRING, |
||
20 | '/^sizes$/i' => Element::ATTR_CS_STRING |
||
21 | ); |
||
22 | |||
23 | return array_merge( |
||
24 | $linkAllowedAttributes, |
||
25 | parent::getAllowedAttributes() |
||
26 | ); |
||
27 | } |
||
28 | |||
42 |