@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | class Client |
40 | 40 | { |
41 | - const SUPPORTED_FORMATS = ['TabSeparated', 'TabSeparatedWithNames', 'CSV', 'CSVWithNames', 'JSONEachRow','CSVWithNamesAndTypes','TSVWithNamesAndTypes']; |
|
41 | + const SUPPORTED_FORMATS = ['TabSeparated', 'TabSeparatedWithNames', 'CSV', 'CSVWithNames', 'JSONEachRow', 'CSVWithNamesAndTypes', 'TSVWithNamesAndTypes']; |
|
42 | 42 | |
43 | 43 | /** @var Http */ |
44 | 44 | private $transport; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @return Settings |
187 | 187 | */ |
188 | - public function setTimeout(int|float $timeout):Settings |
|
188 | + public function setTimeout(int | float $timeout):Settings |
|
189 | 189 | { |
190 | 190 | return $this->settings()->max_execution_time(intval($timeout)); |
191 | 191 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | */ |
344 | 344 | public function enableLogQueries(bool $flag = true) |
345 | 345 | { |
346 | - $this->settings()->set('log_queries', (int)$flag); |
|
346 | + $this->settings()->set('log_queries', (int) $flag); |
|
347 | 347 | |
348 | 348 | return $this; |
349 | 349 | } |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | */ |
380 | 380 | public function enableExtremes(bool $flag = true) |
381 | 381 | { |
382 | - $this->settings()->set('extremes', (int)$flag); |
|
382 | + $this->settings()->set('extremes', (int) $flag); |
|
383 | 383 | |
384 | 384 | return $this; |
385 | 385 | } |
@@ -742,9 +742,9 @@ discard block |
||
742 | 742 | * @return bool |
743 | 743 | * @throws TransportException |
744 | 744 | */ |
745 | - public function ping(bool $throwException=false): bool |
|
745 | + public function ping(bool $throwException = false): bool |
|
746 | 746 | { |
747 | - $result=$this->transport()->ping(); |
|
747 | + $result = $this->transport()->ping(); |
|
748 | 748 | if ($throwException && !$result) throw new TransportException('Can`t ping server'); |
749 | 749 | return $result; |
750 | 750 | } |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | public function partitions(string $table, int $limit = null, bool $active = null) |
814 | 814 | { |
815 | 815 | $database = $this->settings()->getDatabase(); |
816 | - $whereActiveClause = $active === null ? '' : sprintf(' AND active = %s', (int)$active); |
|
816 | + $whereActiveClause = $active === null ? '' : sprintf(' AND active = %s', (int) $active); |
|
817 | 817 | $limitClause = $limit !== null ? ' LIMIT ' . $limit : ''; |
818 | 818 | |
819 | 819 | return $this->select(<<<CLICKHOUSE |
@@ -884,7 +884,7 @@ discard block |
||
884 | 884 | */ |
885 | 885 | public function getServerVersion(): string |
886 | 886 | { |
887 | - return (string)$this->select('SELECT version() as version')->fetchOne('version'); |
|
887 | + return (string) $this->select('SELECT version() as version')->fetchOne('version'); |
|
888 | 888 | } |
889 | 889 | |
890 | 890 | /** |