@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $request = new FindRequest(); |
57 | 57 | |
58 | - $fn = static function () { |
|
58 | + $fn = static function() { |
|
59 | 59 | yield 1; |
60 | 60 | }; |
61 | 61 |
@@ -63,8 +63,7 @@ |
||
63 | 63 | $endPage = $endPage < $findResponse->getTotalPage() ? $endPage : $findResponse->getTotalPage(); |
64 | 64 | $findRequest->setPage($i); |
65 | 65 | yield from $findRequest->isFullData() ? |
66 | - $this->find($findRequest)->getDetailLawyers() : |
|
67 | - $this->find($findRequest)->getLawyers(); |
|
66 | + $this->find($findRequest)->getDetailLawyers() : $this->find($findRequest)->getLawyers(); |
|
68 | 67 | } |
69 | 68 | } |
70 | 69 |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | */ |
210 | 210 | $nodes = $dom->find(static::LAWYER_DETAIL_SELECTOR)->toArray(); |
211 | 211 | |
212 | - $nodes = array_filter($nodes, static function (HtmlNode $htmlNode) { |
|
212 | + $nodes = array_filter($nodes, static function(HtmlNode $htmlNode) { |
|
213 | 213 | return strpos($htmlNode->getAttribute('class'), static::LAWYER_DETAIL_NAME_FIELD) === false; |
214 | 214 | }); |
215 | 215 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | */ |
242 | 242 | protected function getLocationByRegisterNumber(string $registerNumber, array $locations): ?Location |
243 | 243 | { |
244 | - [$locationId,] = explode('/', $registerNumber); |
|
244 | + [$locationId, ] = explode('/', $registerNumber); |
|
245 | 245 | |
246 | 246 | foreach ($locations as $location) { |
247 | 247 | if ($location->getId() === $locationId) { |
@@ -261,13 +261,13 @@ discard block |
||
261 | 261 | |
262 | 262 | $nodes = array_filter( |
263 | 263 | $nodes, |
264 | - static function (HtmlNode $htmlNode) { |
|
264 | + static function(HtmlNode $htmlNode) { |
|
265 | 265 | return $htmlNode->getAttribute('value'); |
266 | 266 | } |
267 | 267 | ); |
268 | 268 | |
269 | 269 | return array_map( |
270 | - static function (HtmlNode $htmlNode) { |
|
270 | + static function(HtmlNode $htmlNode) { |
|
271 | 271 | $id = trim($htmlNode->getAttribute('value')); |
272 | 272 | |
273 | 273 | $name = $htmlNode->text(); |