@@ -27,10 +27,10 @@ |
||
27 | 27 | throw new InvalidServerResponseException('Invalid server response'); |
28 | 28 | } |
29 | 29 | |
30 | - $elements = []; |
|
30 | + $elements = [ ]; |
|
31 | 31 | |
32 | 32 | foreach ($xmlElementsResponse->dane as $resultData) { |
33 | - $elements[] = static::decodeSingleResult($resultData); |
|
33 | + $elements[ ] = static::decodeSingleResult($resultData); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | return new SearchDataResponse($elements); |
@@ -423,7 +423,7 @@ |
||
423 | 423 | |
424 | 424 | $result = $this->apiClient->searchData(new SearchData($searchParameters), $this->sessionId); |
425 | 425 | |
426 | - return \array_map(function (SearchResponseCompanyData $company) { |
|
426 | + return \array_map(function(SearchResponseCompanyData $company) { |
|
427 | 427 | return new SearchReport($company); |
428 | 428 | }, $result->getDaneSzukajResult()); |
429 | 429 | } |
@@ -27,10 +27,10 @@ |
||
27 | 27 | */ |
28 | 28 | public static function getAction(string $functionName): string |
29 | 29 | { |
30 | - if (!isset(self::ACTIONS[$functionName])) { |
|
30 | + if (!isset(self::ACTIONS[ $functionName ])) { |
|
31 | 31 | throw new InvalidActionNameException(\sprintf('Invalid action %s', $functionName)); |
32 | 32 | } |
33 | 33 | |
34 | - return self::ACTIONS[$functionName].$functionName; |
|
34 | + return self::ACTIONS[ $functionName ].$functionName; |
|
35 | 35 | } |
36 | 36 | } |