| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 17 | protected function getAllowedAttributes() |
||
| 18 | { |
||
| 19 | $areaAllowedAttributes = array( |
||
| 20 | '/^alt$/i' => Element::ATTR_CS_STRING, |
||
| 21 | '/^coords$/i' => Element::ATTR_CS_STRING, |
||
| 22 | '/^shape$/i' => Element::ATTR_CS_STRING, |
||
| 23 | '/^href$/i' => Element::ATTR_URI, |
||
| 24 | '/^target$/i' => Element::ATTR_CS_STRING, |
||
| 25 | '/^download$/i' => Element::ATTR_CS_STRING, |
||
| 26 | '/^ping$/i' => Element::ATTR_URI, |
||
| 27 | '/^rel$/i' => Element::ATTR_CS_STRING, |
||
| 28 | ); |
||
| 29 | |||
| 30 | return array_merge( |
||
| 31 | $areaAllowedAttributes, |
||
| 32 | parent::getAllowedAttributes() |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |