@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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]; |