@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $this->url = $this->argument('url'); |
64 | 64 | |
65 | - $this->limit = (int)$this->option('limit'); |
|
65 | + $this->limit = (int) $this->option('limit'); |
|
66 | 66 | |
67 | 67 | $this->parse(); |
68 | 68 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | $firstPage = $this->download($this->url); |
83 | 83 | |
84 | - $allPages = (int)(new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
84 | + $allPages = (int) (new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
85 | 85 | |
86 | 86 | $k = 0; |
87 | 87 | for ($i = 1; $i <= $allPages; $i++) { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | $streets = (new Crawler($page))->filter('.c4 > a'); |
96 | 96 | |
97 | - $streets->each(function ($node) { |
|
97 | + $streets->each(function($node) { |
|
98 | 98 | /** |
99 | 99 | * Получаем список домов |
100 | 100 | */ |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | * Обрабатываем список домов |
107 | 107 | */ |
108 | 108 | $numbers = collect((new Crawler($page))->filter('.c6 > div > a')->extract('_text')) |
109 | - ->reject(function ($item, $key) { |
|
109 | + ->reject(function($item, $key) { |
|
110 | 110 | return strpos($item, 'дом ') !== 0; |
111 | - })->map(function ($item, $key) { |
|
111 | + })->map(function($item, $key) { |
|
112 | 112 | return str_replace('дом № ', '', $item); |
113 | 113 | })->toArray(); |
114 | 114 |