Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
63 | public function prepForRender(&$data): bool |
||
64 | { |
||
65 | $shouldRender = parent::prepForRender($data); |
||
66 | if ($shouldRender) { |
||
67 | if (!empty($data['href'])) { |
||
68 | $data['href'] = UrlHelper::absoluteUrlWithProtocol( |
||
69 | StringHelper::toLowerCase($data['href']) |
||
70 | ); |
||
71 | } |
||
72 | } |
||
73 | |||
74 | return $shouldRender; |
||
75 | } |
||
77 |