Passed
Push — main ( b49db2...9f0690 )
by Sammy
08:20
created
src/Grammar/Grammar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         if (is_array($reference)) {
22 22
             $tick = $reference[0];
23 23
             if (isset($reference[1])) {
24
-                $tick = $tick . '`.`' . $reference[1];
24
+                $tick = $tick.'`.`'.$reference[1];
25 25
             }
26 26
             $reference = $tick;
27 27
         }
Please login to merge, or discard this patch.
src/Grammar/Query/Select.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         $schema = Grammar::identifier($this->table);
29 29
         if (!empty($this->alias)) {
30
-            $schema .= ' AS ' . Grammar::identifier($this->alias);
30
+            $schema .= ' AS '.Grammar::identifier($this->alias);
31 31
         }
32 32
 
33 33
         $ret = sprintf('SELECT %s FROM %s', $this->deck, $schema);
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
                 Clause::LIMIT
43 43
             ] as $clause
44 44
         ) {
45
-            if($this->clause($clause) === null)
45
+            if ($this->clause($clause) === null)
46 46
                 continue;
47 47
 
48
-            $ret .= PHP_EOL . $this->clause($clause);
48
+            $ret .= PHP_EOL.$this->clause($clause);
49 49
         }
50 50
 
51 51
         return $ret;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             if (is_int($alias)) {
83 83
                 $alias = null;
84 84
             }
85
-            if(!isset($this->deck)){
85
+            if (!isset($this->deck)) {
86 86
                 $this->deck = new Deck($column, $alias);
87 87
             } else {
88 88
                 $this->deck->add($column, $alias);
Please login to merge, or discard this patch.
src/Grammar/DeckOrderBy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     protected function format($aggregate, string $direction = null): string
10 10
     {
11 11
         $ret = is_string($aggregate) ? $aggregate : self::identifier($aggregate);
12
-        $ret .= ' ' . in_array($direction, ['ASC', 'DESC']) ? $direction : 'ASC';
12
+        $ret .= ' '.in_array($direction, ['ASC', 'DESC']) ? $direction : 'ASC';
13 13
 
14 14
         return $ret;
15 15
     }
Please login to merge, or discard this patch.
src/Grammar/Deck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function addRaw(string $raw): self
30 30
     {
31
-        $this->aggregates .= ',' . $raw;
31
+        $this->aggregates .= ','.$raw;
32 32
         return $this;
33 33
     }
34 34
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $ret = is_string($aggregate) ? $aggregate : self::identifier($aggregate);
44 44
 
45 45
         if ($alias !== null) {
46
-            $ret .= ' AS ' . self::identifier($alias);
46
+            $ret .= ' AS '.self::identifier($alias);
47 47
         }
48 48
 
49 49
         return $ret;
Please login to merge, or discard this patch.
src/Grammar/Clause/Where.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             return '';
29 29
         }
30 30
 
31
-        return 'WHERE ' . implode(' AND ', $this->and);
31
+        return 'WHERE '.implode(' AND ', $this->and);
32 32
     }
33 33
 
34 34
     public function name(): string
Please login to merge, or discard this patch.
src/Grammar/Clause/SelectFrom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $schema = self::identifier($this->table);
67 67
         if (!empty($this->alias)) {
68
-            $schema .= ' AS ' . self::identifier($this->alias);
68
+            $schema .= ' AS '.self::identifier($this->alias);
69 69
         }
70 70
 
71 71
         $columns = implode(',', $this->columns);
Please login to merge, or discard this patch.
src/Grammar/Clause/GroupBy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function __toString(): string
23 23
     {
24
-        return 'GROUP BY ' . $this->deck;
24
+        return 'GROUP BY '.$this->deck;
25 25
     }
26 26
 
27 27
     public function name(): string
Please login to merge, or discard this patch.