Passed
Branch master (154e98)
by Radosław
02:49
created
Category
src/Crawler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Radowoj\Crawla;
6 6
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     protected function crawlPages()
240 240
     {
241
-        while($page = $this->getQueued()->shift()) {
241
+        while ($page = $this->getQueued()->shift()) {
242 242
             if ($this->maxDepth !== self::DEPTH_INFINITE && $page['depth'] > $this->maxDepth) {
243 243
                 $this->getTooDeep()->append([$page['url']], $page['depth']);
244 244
                 continue;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     {
287 287
         $links = $domCrawler->filter($this->linkSelector)->links();
288 288
 
289
-        $urls = array_map(function ($link) {
289
+        $urls = array_map(function($link) {
290 290
             $url = $link->getUri();
291 291
             $url = explode('#', $url);
292 292
             return $url[0];
Please login to merge, or discard this patch.