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