Passed
Pull Request — master (#77)
by Janusz
01:29
created
src/GusApi/Util/DataSearchDecoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/GusApi/Util/FullReportResponseDecoder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/GusApi/Util/BulkReportResponseDecoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.