@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $this->url = $this->argument('url'); |
| 69 | 69 | |
| 70 | - $this->limit = (int)$this->option('limit'); |
|
| 70 | + $this->limit = (int) $this->option('limit'); |
|
| 71 | 71 | |
| 72 | 72 | $this->parse(); |
| 73 | 73 | |
@@ -86,11 +86,11 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | $firstPage = $this->download($this->url); |
| 88 | 88 | |
| 89 | - $allPages = (int)(new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
| 89 | + $allPages = (int) (new Crawler($firstPage))->filter('.uk-pagination > li')->last()->text(); |
|
| 90 | 90 | |
| 91 | 91 | $name = (new Crawler($firstPage))->filterXpath('//meta[@name="geo.placename"]')->attr('content'); |
| 92 | 92 | |
| 93 | - $this->name = explode(', ', $name)[0]; |
|
| 93 | + $this->name = explode(', ', $name)[ 0 ]; |
|
| 94 | 94 | |
| 95 | 95 | $k = 0; |
| 96 | 96 | |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | $streets = (new Crawler($page))->filter('.c4 > a'); |
| 106 | 106 | |
| 107 | - $streets->each(function ($node) { |
|
| 107 | + $streets->each(function($node) { |
|
| 108 | 108 | /** |
| 109 | 109 | * Получаем список домов |
| 110 | 110 | */ |
@@ -116,9 +116,9 @@ discard block |
||
| 116 | 116 | * Обрабатываем список домов |
| 117 | 117 | */ |
| 118 | 118 | $numbers = collect((new Crawler($page))->filter('.c6 > div > a')->extract('_text')) |
| 119 | - ->reject(function ($item) { |
|
| 119 | + ->reject(function($item) { |
|
| 120 | 120 | return strpos($item, 'дом ') !== 0; |
| 121 | - })->map(function ($item) { |
|
| 121 | + })->map(function($item) { |
|
| 122 | 122 | return str_replace('дом № ', '', $item); |
| 123 | 123 | })->toArray(); |
| 124 | 124 | |