Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
62 | 1 | protected function getAttributes(string $href, array $attributes): array |
|
63 | { |
||
64 | $required = [ |
||
65 | 1 | 'rel' => 'stylesheet', |
|
66 | 1 | 'href' => $href, |
|
67 | 1 | 'type' => 'text/css', |
|
68 | 1 | 'media' => 'screen', |
|
69 | ]; |
||
70 | |||
71 | 1 | unset($attributes["href"]); |
|
72 | |||
73 | 1 | return array_merge($required, $attributes); |
|
74 | } |
||
76 |