@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | // Make sure the href is an absolute URL. |
163 | 163 | if ($href && filter_var($href, FILTER_VALIDATE_URL) === false) { |
164 | - $href = $url . '/' . $href; //Todo: Improve this |
|
164 | + $href = $url.'/'.$href; //Todo: Improve this |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | $size = $link->hasAttribute('sizes') ? $link->getAttribute('sizes') : []; |
@@ -169,18 +169,18 @@ discard block |
||
169 | 169 | |
170 | 170 | $type = false; |
171 | 171 | |
172 | - switch(strtolower($attribute)) { |
|
172 | + switch (strtolower($attribute)) { |
|
173 | 173 | case Icon::APPLE_TOUCH: |
174 | 174 | $type = Icon::APPLE_TOUCH; |
175 | 175 | break; |
176 | 176 | default: |
177 | - if(strpos($link->getAttribute('href'), 'icon') !== FALSE) { |
|
177 | + if (strpos($link->getAttribute('href'), 'icon') !== FALSE) { |
|
178 | 178 | $type = Icon::FAVICON; |
179 | 179 | $size = []; |
180 | 180 | } |
181 | 181 | }; |
182 | 182 | |
183 | - if(!empty($type) && filter_var($href, FILTER_VALIDATE_URL)) { |
|
183 | + if (!empty($type) && filter_var($href, FILTER_VALIDATE_URL)) { |
|
184 | 184 | $icons[] = new Icon($type, $href, $size); |
185 | 185 | } |
186 | 186 | } |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | |
211 | 211 | // Make sure the favicon is an absolute URL. |
212 | 212 | if (isset($favicon) && filter_var($favicon, FILTER_VALIDATE_URL) === false) { |
213 | - $favicon = $url . '/' . $favicon; |
|
213 | + $favicon = $url.'/'.$favicon; |
|
214 | 214 | } |
215 | 215 | |
216 | 216 | if (isset($favicon)) { |