@@ -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 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * @param array[] $report |
16 | 16 | */ |
17 | - public function __construct(array $report = []) |
|
17 | + public function __construct(array $report = [ ]) |
|
18 | 18 | { |
19 | 19 | $this->report = $report; |
20 | 20 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public static function decode(GetFullReportResponseRaw $fullReportResponseRaw): GetFullReportResponse |
19 | 19 | { |
20 | - $elements = []; |
|
20 | + $elements = [ ]; |
|
21 | 21 | |
22 | 22 | if ('' === $fullReportResponseRaw->getDanePobierzPelnyRaportResult()) { |
23 | 23 | return new GetFullReportResponse($elements); |
@@ -27,11 +27,11 @@ discard block |
||
27 | 27 | $xmlElementsResponse = new \SimpleXMLElement($fullReportResponseRaw->getDanePobierzPelnyRaportResult()); |
28 | 28 | |
29 | 29 | foreach ($xmlElementsResponse->dane as $resultData) { |
30 | - $element = []; |
|
30 | + $element = [ ]; |
|
31 | 31 | foreach ($resultData as $key => $item) { |
32 | - $element[$key] = (string) $item; |
|
32 | + $element[ $key ] = (string) $item; |
|
33 | 33 | } |
34 | - $elements[] = $element; |
|
34 | + $elements[ ] = $element; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | return new GetFullReportResponse($elements); |
@@ -195,7 +195,7 @@ |
||
195 | 195 | 'user_agent' => 'PHP GusApi', |
196 | 196 | ]); |
197 | 197 | |
198 | - return $this->soapClient->__soapCall($functionName, $arguments, [], $soapHeaders); |
|
198 | + return $this->soapClient->__soapCall($functionName, $arguments, [ ], $soapHeaders); |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |