@@ -56,7 +56,7 @@ |
||
56 | 56 | throw new InvalidSiloTypeException(sprintf('Invalid silo type: %s', $silo)); |
57 | 57 | } |
58 | 58 | |
59 | - return $siloMapper[$silo]; |
|
59 | + return $siloMapper[ $silo ]; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public static function decode(SearchResponseRaw $searchResponseRaw): SearchDataResponse |
20 | 20 | { |
21 | - $elements = []; |
|
21 | + $elements = [ ]; |
|
22 | 22 | |
23 | 23 | if ('' === $searchResponseRaw->getDaneSzukajResult()) { |
24 | 24 | return new SearchDataResponse(); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | foreach ($resultData as $key => $item) { |
33 | 33 | $element->$key = (string) $item; |
34 | 34 | } |
35 | - $elements[] = $element; |
|
35 | + $elements[ ] = $element; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return new SearchDataResponse($elements); |
@@ -365,7 +365,7 @@ |
||
365 | 365 | |
366 | 366 | $result = $this->apiClient->searchData(new SearchData($searchParameters), $this->sessionId); |
367 | 367 | |
368 | - return array_map(function (SearchResponseCompanyData $company) { |
|
368 | + return array_map(function(SearchResponseCompanyData $company) { |
|
369 | 369 | return new SearchReport($company); |
370 | 370 | }, $result->getDaneSzukajResult()); |
371 | 371 | } |
@@ -7,12 +7,12 @@ |
||
7 | 7 | /** |
8 | 8 | * @var SearchResponseCompanyData[] |
9 | 9 | */ |
10 | - public $DaneSzukajResult = []; |
|
10 | + public $DaneSzukajResult = [ ]; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * @param SearchResponseCompanyData[] $DaneSzukajResult |
14 | 14 | */ |
15 | - public function __construct(array $DaneSzukajResult = []) |
|
15 | + public function __construct(array $DaneSzukajResult = [ ]) |
|
16 | 16 | { |
17 | 17 | $this->DaneSzukajResult = $DaneSzukajResult; |
18 | 18 | } |
@@ -30,10 +30,10 @@ |
||
30 | 30 | */ |
31 | 31 | public static function getAction(string $functionName): string |
32 | 32 | { |
33 | - if (!isset(self::ACTIONS[$functionName])) { |
|
33 | + if (!isset(self::ACTIONS[ $functionName ])) { |
|
34 | 34 | throw new InvalidActionNameException(sprintf('Invalid action %s', $functionName)); |
35 | 35 | } |
36 | 36 | |
37 | - return self::ACTIONS[$functionName].$functionName; |
|
37 | + return self::ACTIONS[ $functionName ].$functionName; |
|
38 | 38 | } |
39 | 39 | } |