@@ -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 | } |
@@ -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 | } |
@@ -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 | /** |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public static function decode(GetFullReportResponseRaw $fullReportResponseRaw): GetFullReportResponse |
20 | 20 | { |
21 | - $elements = []; |
|
21 | + $elements = [ ]; |
|
22 | 22 | |
23 | 23 | if ('' === $fullReportResponseRaw->getDanePobierzPelnyRaportResult()) { |
24 | 24 | return new GetFullReportResponse($elements); |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | $xmlElementsResponse = new SimpleXMLElement($fullReportResponseRaw->getDanePobierzPelnyRaportResult()); |
29 | 29 | |
30 | 30 | foreach ($xmlElementsResponse->dane as $resultData) { |
31 | - $element = []; |
|
31 | + $element = [ ]; |
|
32 | 32 | foreach ($resultData as $key => $item) { |
33 | - $element[$key] = (string) $item; |
|
33 | + $element[ $key ] = (string) $item; |
|
34 | 34 | } |
35 | - $elements[] = $element; |
|
35 | + $elements[ ] = $element; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return new GetFullReportResponse($elements); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public static function decode(GetBulkReportResponseRaw $bulkReportResponseRaw): array |
19 | 19 | { |
20 | - $regons = []; |
|
20 | + $regons = [ ]; |
|
21 | 21 | |
22 | 22 | if ('' === $bulkReportResponseRaw->getDanePobierzRaportZbiorczyResult()) { |
23 | 23 | return $regons; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $xmlElementsResponse = new SimpleXMLElement($bulkReportResponseRaw->getDanePobierzRaportZbiorczyResult()); |
28 | 28 | |
29 | 29 | foreach ($xmlElementsResponse->dane as $regon) { |
30 | - $regons[] = (string) $regon->regon; |
|
30 | + $regons[ ] = (string) $regon->regon; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | return $regons; |
@@ -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 | } |