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