@@ -272,8 +272,7 @@ |
||
272 | 272 | foreach ($this->columns as $alias => $name) { |
273 | 273 | if (is_string($alias) and $name !== $alias) { |
274 | 274 | $columns[] = "{$name} AS {$alias}"; |
275 | - } |
|
276 | - else { |
|
275 | + } else { |
|
277 | 276 | $columns[] = $name; |
278 | 277 | } |
279 | 278 | } |
@@ -60,8 +60,7 @@ |
||
60 | 60 | public static function compare ($a, $b = null, $oper = '=', $subOper = 'ANY', $listOper = 'IN') { |
61 | 61 | if (is_array($b)) { |
62 | 62 | return new static("{$a} {$listOper} (" . implode(',', $b) . ")"); |
63 | - } |
|
64 | - elseif ($b instanceof Select) { |
|
63 | + } elseif ($b instanceof Select) { |
|
65 | 64 | return new static("{$a} {$oper} {$subOper} ({$b->toSql()})"); |
66 | 65 | } |
67 | 66 | return new static("{$a} {$oper} {$b}"); |
@@ -29,8 +29,7 @@ |
||
29 | 29 | public function is ($arg): Predicate { |
30 | 30 | if ($arg === null or is_bool($arg)) { |
31 | 31 | $arg = ['' => 'NULL', 1 => 'TRUE', 0 => 'FALSE'][$arg]; |
32 | - } |
|
33 | - else { |
|
32 | + } else { |
|
34 | 33 | $arg = $this->db->quote($arg); |
35 | 34 | } |
36 | 35 | $oper = ['mysql' => '<=>', 'sqlite' => 'IS'][$this->db->getDriver()]; |