@@ -63,14 +63,14 @@ discard block |
||
| 63 | 63 | throw new InvalidArgument('Address cannot be empty.'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $result = $this->executeQuery('searchPositionScored', ['search' => $address]); |
|
| 66 | + $result = $this->executeQuery('searchPositionScored', [ 'search' => $address ]); |
|
| 67 | 67 | |
| 68 | 68 | // no result |
| 69 | 69 | if (!isset($result->x) || !isset($result->y)) { |
| 70 | - return new AddressCollection([]); |
|
| 70 | + return new AddressCollection([ ]); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $results = []; |
|
| 73 | + $results = [ ]; |
|
| 74 | 74 | |
| 75 | 75 | $proj4 = new Proj4php(); |
| 76 | 76 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $upperRight->x |
| 106 | 106 | ); |
| 107 | 107 | |
| 108 | - $results[] = $builder->build(); |
|
| 108 | + $results[ ] = $builder->build(); |
|
| 109 | 109 | |
| 110 | 110 | return new AddressCollection($results); |
| 111 | 111 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | 'y' => $queryCoordinates->y, |
| 131 | 131 | ]); |
| 132 | 132 | |
| 133 | - $results = []; |
|
| 133 | + $results = [ ]; |
|
| 134 | 134 | |
| 135 | 135 | $pointSrc = new Point($result->x, $result->y, $proj31370); |
| 136 | 136 | $coordinates = $proj4->transform($proj4326, $pointSrc); |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $upperRight->x |
| 162 | 162 | ); |
| 163 | 163 | |
| 164 | - $results[] = $builder->build(); |
|
| 164 | + $results[ ] = $builder->build(); |
|
| 165 | 165 | |
| 166 | 166 | return new AddressCollection($results); |
| 167 | 167 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | private function executeQuery(string $function, array $data): \stdClass |
| 183 | 183 | { |
| 184 | 184 | $client = new SoapClient(self::WSDL_ENDPOINT_URL); |
| 185 | - $result = $client->__soapCall($function, [$data]); |
|
| 185 | + $result = $client->__soapCall($function, [ $data ]); |
|
| 186 | 186 | |
| 187 | 187 | // API error |
| 188 | 188 | if (!isset($result->return)) { |