@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | |
47 | 47 | $url = $this->argument('url'); |
48 | 48 | |
49 | - $limit = (int)$this->option('limit'); |
|
49 | + $limit = (int) $this->option('limit'); |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Получаем список всех страниц с улицами |
53 | 53 | */ |
54 | 54 | $firstPage = $this->download($url); |
55 | 55 | |
56 | - $allPages = (int)(new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
56 | + $allPages = (int) (new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
57 | 57 | |
58 | 58 | $k = 0; |
59 | 59 | for ($i = 1; $i <= $allPages; $i++) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $streets = (new Crawler($page))->filter('.c4 > a'); |
68 | 68 | |
69 | - $streets->each(function ($node) { |
|
69 | + $streets->each(function($node) { |
|
70 | 70 | /** |
71 | 71 | * Получаем список домов |
72 | 72 | */ |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | * Обрабатываем список домов |
79 | 79 | */ |
80 | 80 | $numbers = collect((new Crawler($page))->filter('.c6 > div > a')->extract('_text')) |
81 | - ->reject(function ($item, $key) { |
|
81 | + ->reject(function($item, $key) { |
|
82 | 82 | return strpos($item, 'дом ') !== 0; |
83 | - })->map(function ($item, $key) { |
|
83 | + })->map(function($item, $key) { |
|
84 | 84 | return str_replace('дом № ', '', $item); |
85 | 85 | })->toArray(); |
86 | 86 |