| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | 1 | protected function processAttributes(string $href, array $attributes): array |
|
| 50 | { |
||
| 51 | 1 | $overrides = ["href" => $href]; |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Avoid duplicate "href" and ignore it if it is passed in the attributes |
||
| 55 | */ |
||
| 56 | 1 | unset($attributes["href"]); |
|
| 57 | |||
| 58 | 1 | return array_merge($overrides, $attributes); |
|
| 59 | } |
||
| 61 |