Skip to content

Commit 64198f7

Browse files
committed
spacing
1 parent 9452049 commit 64198f7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/ClickHouseFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class ClickHouseFunctions extends ClickHouseQuery
9393
*
9494
* @var array of $fields_arr about fields of tables
9595
*/
96-
public $table_structure_cached=[];
96+
public $table_structure_cached = [];
9797

9898
private $from = ' FROM '; // For stupid code analyzers
9999

@@ -683,7 +683,7 @@ public function sendFileInsert($file, $table, $only_return_structure = false)
683683
}
684684
if ($need_conv) {
685685
if (($type_name == 'Date' || $type_name == 'DateTime') &&
686-
\is_numeric($fs[$n]) && $fs[$n]>65536) {
686+
\is_numeric($fs[$n]) && $fs[$n] > 65536) {
687687
$from_type = 'UInt32';
688688
} else {
689689
$from_type = "String";

src/ClickHouseQuery.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ public function queryInsertFile(
513513
$this->setOption($fs, $old_fs, true);
514514

515515
// Return string if curl_error or server answer is not 200
516-
return $ans['curl_error'] ?:
517-
(($ans['code'] == 200) ? false : $ans['response']);
516+
return $ans['curl_error'] ?: (($ans['code'] == 200) ? false : $ans['response']);
518517
}
519518
/**
520519
* Inserting data into table from array
@@ -558,7 +557,7 @@ public function queryInsertArray($table_name, $fields_names, $fields_set_arr, $s
558557
}
559558

560559
$sql = "INSERT INTO $table_name (" . implode(",", $fields_names) . ") " .
561-
"FORMAT " . ($use_json_each_row ? 'JSONEachRow' : 'TabSeparated');
560+
"FORMAT " . ($use_json_each_row ? 'JSONEachRow' : 'TabSeparated');
562561

563562
if (!isset($fields_set_arr[0])) {
564563
$post_data = [\json_encode($fields_set_arr)];

0 commit comments

Comments
 (0)