Completed
Push — master ( 21f8e2...297650 )
by Janusz
01:58
created
src/GusApi/ReportTypeMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
     /**
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
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
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
@@ -365,7 +365,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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/Client/SoapActionMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
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
 }
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/Util/FullReportResponseDecoder.php 1 patch
Spacing   +4 added lines, -4 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(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
 block discarded – undo
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);
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.