@@ -54,7 +54,7 @@ |
||
54 | 54 | foreach ($this->typeCheck as $field_name => $field_type) { |
55 | 55 | if (empty($args[$field_name]) || is_null($args[$field_name])) { |
56 | 56 | if ($this->isFieldRequired($field_name)) { |
57 | - $this->addError('Missing "' . $field_name . '" in ' . static::class); |
|
57 | + $this->addError('Missing "'.$field_name.'" in '.static::class); |
|
58 | 58 | } |
59 | 59 | } else { |
60 | 60 | $this->$field_name = $this->parseFieldValue($field_type, $args[$field_name]); |
@@ -216,7 +216,7 @@ |
||
216 | 216 | throw new RequestException('Service name missing!'); |
217 | 217 | } |
218 | 218 | |
219 | - return $this->api_url . $service_endpoint . '/' . GoogleMapsResponseFormat::JSON; |
|
219 | + return $this->api_url.$service_endpoint.'/'.GoogleMapsResponseFormat::JSON; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $params = []; |
59 | 59 | |
60 | 60 | foreach ($this->params as $param_name => $param_value) { |
61 | - $params[$param_name] = (string)$param_value; |
|
61 | + $params[$param_name] = (string) $param_value; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return http_build_query($params); |
@@ -66,13 +66,13 @@ |
||
66 | 66 | public function parseLocations($locations): string { |
67 | 67 | |
68 | 68 | if (is_array($locations)) { |
69 | - $locations = implode('|', array_map(function ($item) { |
|
69 | + $locations = implode('|', array_map(function($item) { |
|
70 | 70 | |
71 | - return (string)$item; |
|
71 | + return (string) $item; |
|
72 | 72 | }, $locations)); |
73 | 73 | } |
74 | 74 | |
75 | - return (string)$locations; |
|
75 | + return (string) $locations; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | } |
79 | 79 | \ No newline at end of file |