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