@@ -232,7 +232,7 @@ |
||
232 | 232 | * @return $data |
233 | 233 | * |
234 | 234 | */ |
235 | - public function call($method , $data = array()) |
|
235 | + public function call($method, $data = array()) |
|
236 | 236 | { |
237 | 237 | $this->driverInstance = $this->getFreshDriverInstance(); |
238 | 238 | $result = $this->driverInstance->call($method, $data); |
@@ -148,8 +148,9 @@ |
||
148 | 148 | $body = @json_decode($responseBody, true); |
149 | 149 | $statusCode = (int) $response->getStatusCode(); |
150 | 150 | |
151 | - if ($statusCode != 200) |
|
152 | - return 'err'; |
|
151 | + if ($statusCode != 200) { |
|
152 | + return 'err'; |
|
153 | + } |
|
153 | 154 | |
154 | 155 | return $body; |
155 | 156 | } |