@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public static function decode(GetFullReportResponseRaw $fullReportResponseRaw): GetFullReportResponse |
18 | 18 | { |
19 | 19 | /** @var array<int, array<string, string>> $elements */ |
20 | - $elements = []; |
|
20 | + $elements = [ ]; |
|
21 | 21 | |
22 | 22 | if ('' === $fullReportResponseRaw->getDanePobierzPelnyRaportResult()) { |
23 | 23 | return new GetFullReportResponse($elements); |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | |
29 | 29 | foreach ($xmlElementsResponse->dane as $resultData) { |
30 | 30 | /** @var array<string, string> $element */ |
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); |
@@ -29,10 +29,10 @@ |
||
29 | 29 | throw new InvalidServerResponseException('Invalid server response'); |
30 | 30 | } |
31 | 31 | |
32 | - $elements = []; |
|
32 | + $elements = [ ]; |
|
33 | 33 | |
34 | 34 | foreach ($xmlElementsResponse->dane as $resultData) { |
35 | - $elements[] = self::decodeSingleResult($resultData); |
|
35 | + $elements[ ] = self::decodeSingleResult($resultData); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return new SearchDataResponse($elements); |
@@ -25,10 +25,10 @@ |
||
25 | 25 | */ |
26 | 26 | public static function getAction(string $functionName): string |
27 | 27 | { |
28 | - if (!isset(self::ACTIONS[$functionName])) { |
|
28 | + if (!isset(self::ACTIONS[ $functionName ])) { |
|
29 | 29 | throw new InvalidActionNameException(sprintf('Invalid action %s', $functionName)); |
30 | 30 | } |
31 | 31 | |
32 | - return self::ACTIONS[$functionName] . $functionName; |
|
32 | + return self::ACTIONS[ $functionName ].$functionName; |
|
33 | 33 | } |
34 | 34 | } |
@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | public static function decode(string $response): string |
10 | 10 | { |
11 | - return stristr((string) stristr($response, '<s:'), '</s:Envelope>', true) . '</s:Envelope>'; |
|
11 | + return stristr((string) stristr($response, '<s:'), '</s:Envelope>', true).'</s:Envelope>'; |
|
12 | 12 | } |
13 | 13 | } |
@@ -97,11 +97,11 @@ |
||
97 | 97 | $soapHeaders = $this->getRequestHeaders($action, $this->location); |
98 | 98 | $this->soapClient->__setLocation($this->location); |
99 | 99 | $this->setHttpOptions([ |
100 | - 'header' => 'sid: ' . $sid, |
|
100 | + 'header' => 'sid: '.$sid, |
|
101 | 101 | 'user_agent' => 'PHP GusApi', |
102 | 102 | ]); |
103 | 103 | |
104 | - return $this->soapClient->__soapCall($functionName, [$request->toArray()], [], $soapHeaders); |
|
104 | + return $this->soapClient->__soapCall($functionName, [ $request->toArray() ], [ ], $soapHeaders); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
@@ -28,7 +28,7 @@ |
||
28 | 28 | //you can change report type to other one |
29 | 29 | $reportType = ReportTypes::REPORT_PERSON; |
30 | 30 | echo $gusReport->getName(); |
31 | - echo 'Address: ' . $gusReport->getStreet() . ' ' . $gusReport->getPropertyNumber() . '/' . $gusReport->getApartmentNumber(); |
|
31 | + echo 'Address: '.$gusReport->getStreet().' '.$gusReport->getPropertyNumber().'/'.$gusReport->getApartmentNumber(); |
|
32 | 32 | |
33 | 33 | $fullReport = $gus->getFullReport($gusReport, $reportType); |
34 | 34 | var_dump($fullReport); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @param array<int, array<string, string>> $report |
11 | 11 | */ |
12 | - public function __construct(public array $report = []) |
|
12 | + public function __construct(public array $report = [ ]) |
|
13 | 13 | { |
14 | 14 | } |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @param SearchResponseCompanyData[] $DaneSzukajResult |
11 | 11 | */ |
12 | - public function __construct(public array $DaneSzukajResult = []) |
|
12 | + public function __construct(public array $DaneSzukajResult = [ ]) |
|
13 | 13 | { |
14 | 14 | } |
15 | 15 |
@@ -5,9 +5,9 @@ |
||
5 | 5 | use Rector\Config\RectorConfig; |
6 | 6 | use Rector\Set\ValueObject\LevelSetList; |
7 | 7 | |
8 | -return static function (RectorConfig $rectorConfig): void { |
|
8 | +return static function(RectorConfig $rectorConfig): void { |
|
9 | 9 | $rectorConfig->paths([ |
10 | - __DIR__ . '/src' |
|
10 | + __DIR__.'/src' |
|
11 | 11 | ]); |
12 | 12 | |
13 | 13 | $rectorConfig->sets([ |