Passed
Push — master ( 1dcf9b...c6a312 )
by y
01:25
created
src/DB/SQL/CastTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.