@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public static function decode(SearchResponseRaw $searchResponseRaw): SearchDataResponse |
23 | 23 | { |
24 | - $elements = []; |
|
24 | + $elements = [ ]; |
|
25 | 25 | |
26 | 26 | if ('' === $searchResponseRaw->getDaneSzukajPodmiotyResult()) { |
27 | 27 | return new SearchDataResponse(); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | $element->$key = (string) $item; |
43 | 43 | } |
44 | - $elements[] = $element; |
|
44 | + $elements[ ] = $element; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | return new SearchDataResponse($elements); |
@@ -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; |