Skip to content

Commit cabc042

Browse files
committed
spaces
1 parent 7aeba90 commit cabc042

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ClickHouseQuery.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@ public function queryFullArray($sql, $data_only = false, $sess = null)
456456
foreach (['meta', 'statistics', 'extremes', 'totals'] as $key) {
457457
$this->$key = (isset($arr[$key]) && \is_array($arr[$key])) ? $arr[$key] : null;
458458
}
459-
foreach(['rows_before_limit_at_least', 'rows'] as $key) {
459+
foreach (['rows_before_limit_at_least', 'rows'] as $key) {
460460
$this->$key = (isset($arr[$key]) && \is_numeric($arr[$key])) ? $arr[$key] : null;
461461
}
462462
$this->names = $names = isset($this->meta) ? \array_column($this->meta, 'name') : null;
463-
$this->types = \is_array($names) ? \array_column($this->meta, 'type') : null;
463+
$this->types = \is_array($this->meta) ? \array_column($this->meta, 'type') : null;
464464

465465
if ($this->json_compact && !empty($names)) {
466466
foreach (['data', 'extremes'] as $key) {
@@ -628,11 +628,11 @@ public function quotePar($str, $quote = "'")
628628
*/
629629
public function bindPars($pattern, $bindings, $e_pre = '{', $e_pos = '}')
630630
{
631-
$search_arr = array_map(function($s) use ($e_pre, $e_pos) {
631+
$search_arr = \array_map(function($s) use ($e_pre, $e_pos) {
632632
return $e_pre . $s . $e_pos;
633-
}, array_keys($bindings));
634-
$replace_arr = array_values($bindings);
635-
return str_replace($search_arr, $replace_arr, $pattern);
633+
}, \array_keys($bindings));
634+
$replace_arr = \array_values($bindings);
635+
return \str_replace($search_arr, $replace_arr, $pattern);
636636
}
637637

638638
/**

0 commit comments

Comments
 (0)