@@ -133,13 +133,13 @@ |
||
133 | 133 | |
134 | 134 | if ($this->getStatus() != GoogleMapsResponseStatusValues::OK) { |
135 | 135 | $error_message = 'Something went wrong'; |
136 | - if($this->getStatus() === 'INVALID_REQUEST'){ |
|
137 | - print_r($array_response);die();} |
|
136 | + if ($this->getStatus() === 'INVALID_REQUEST') { |
|
137 | + print_r($array_response); die(); } |
|
138 | 138 | if (!empty($array_response[GoogleMapsResponseFields::ERROR_MESSAGE])) { |
139 | 139 | $error_message = $array_response[GoogleMapsResponseFields::ERROR_MESSAGE]; |
140 | 140 | $this->setErrorMessage($error_message); |
141 | 141 | } elseif (!empty($array_response[GoogleMapsResponseFields::STATUS])) { |
142 | - $error_message .= ': ' . $array_response[GoogleMapsResponseFields::STATUS]; |
|
142 | + $error_message .= ': '.$array_response[GoogleMapsResponseFields::STATUS]; |
|
143 | 143 | $this->setErrorMessage($error_message); |
144 | 144 | } |
145 | 145 | throw new RequestException($error_message); |