@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * @var array|null |
| 85 | 85 | */ |
| 86 | - private $statistics=null; |
|
| 86 | + private $statistics = null; |
|
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | public function __construct(CurlerRequest $request) |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | $body = $this->response()->body(); |
| 162 | 162 | $error_no = $this->response()->error_no(); |
| 163 | - $error=$this->response()->error(); |
|
| 163 | + $error = $this->response()->error(); |
|
| 164 | 164 | |
| 165 | 165 | if (!$error_no && !$error) { |
| 166 | 166 | $parse = $this->parseErrorClickHouse($body); |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | else { |
| 172 | 172 | $code = $this->response()->http_code(); |
| 173 | - $message = "HttpCode:" . $this->response()->http_code() . " ; ".$this->response()->error()." ;" . $body; |
|
| 173 | + $message = "HttpCode:" . $this->response()->http_code() . " ; " . $this->response()->error() . " ;" . $body; |
|
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 | else { |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | return false; |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | - foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least','statistics'] as $key) { |
|
| 230 | + foreach (['meta', 'data', 'totals', 'extremes', 'rows', 'rows_before_limit_at_least', 'statistics'] as $key) { |
|
| 231 | 231 | if (isset($this->_rawData[$key])) { |
| 232 | 232 | $this->{$key} = $this->_rawData[$key]; |
| 233 | 233 | } |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * @return array|mixed|null |
| 345 | 345 | * @throws Exception\TransportException |
| 346 | 346 | */ |
| 347 | - public function statistics($key=false) |
|
| 347 | + public function statistics($key = false) |
|
| 348 | 348 | { |
| 349 | 349 | $this->init(); |
| 350 | 350 | if ($key) |