Passed
Pull Request — master (#85)
by Ion
02:32
created
src/GusApi/Type/Response/SearchDataResponse.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/GusApi/Type/Response/GetFullReportResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/GusApi/Client/GusApiClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
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
     /**
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.
src/GusApi/Util/DataSearchDecoder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/GusApi/GusApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/GusApi/Client/SoapActionMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.