@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | * @param scalar[] $values |
| 13 | 13 | * @return Value |
| 14 | 14 | */ |
| 15 | - public function coalesce (array $values) { |
|
| 15 | + public function coalesce(array $values) { |
|
| 16 | 16 | array_unshift($values, $this); |
| 17 | 17 | $values = $this->db->quoteList($values); |
| 18 | 18 | return Value::factory($this->db, "COALESCE({$values})"); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @return Num |
| 25 | 25 | */ |
| 26 | - public function toFloat () { |
|
| 26 | + public function toFloat() { |
|
| 27 | 27 | if ($this->db->isSQLite()) { |
| 28 | 28 | return Num::factory($this->db, "CAST({$this} AS REAL)"); |
| 29 | 29 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @return Num |
| 37 | 37 | */ |
| 38 | - public function toInt () { |
|
| 38 | + public function toInt() { |
|
| 39 | 39 | if ($this->db->isSQLite()) { |
| 40 | 40 | return Num::factory($this->db, "CAST({$this} AS INTEGER)"); |
| 41 | 41 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @return Text |
| 49 | 49 | */ |
| 50 | - public function toText () { |
|
| 50 | + public function toText() { |
|
| 51 | 51 | if ($this->db->isSQLite()) { |
| 52 | 52 | return Text::factory($this->db, "CAST({$this} AS TEXT)"); |
| 53 | 53 | } |