Completed
Push — master ( fc315f...e9de2d )
by Matthew
9s
created
src/IconScraper/Icon.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * Created by PhpStorm.
4
-     * User: Matthew
5
-     * Date: 15/07/15
6
-     * Time: 4:20 PM
7
-     */
3
+ * Created by PhpStorm.
4
+ * User: Matthew
5
+ * Date: 15/07/15
6
+ * Time: 4:20 PM
7
+ */
8 8
 
9 9
 namespace Mpclarkson\IconScraper;
10 10
 
Please login to merge, or discard this patch.
src/IconScraper/Scraper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.