Skip to content

Commit

Permalink
Merge branch 'master' into fix/http-headers-lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalbase authored Mar 21, 2017
2 parents 72c57fb + e9de2d3 commit 7e84584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IconScraper/Scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ private function getIcons($url) {
}

$size = $link->hasAttribute('sizes') ? $link->getAttribute('sizes') : [];
$size = !is_array($size) ? explode('x', $size) : $size;

$type = false;

switch(strtolower($attribute)) {
case Icon::APPLE_TOUCH:
$type = Icon::APPLE_TOUCH;
$size = !is_array($size) ? explode('x', $size) : $size;
break;
default:
if(strpos($link->getAttribute('href'), 'icon') !== FALSE) {
Expand Down

0 comments on commit 7e84584

Please sign in to comment.