Passed
Push — main ( 72ed59...7b3af7 )
by Sammy
01:55
created
src/Grammar/Predicate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function withValue($value, string $bind_prefix = null): self
64 64
     {
65 65
         $this->bindings[$this->bindLabel($bind_prefix)] = $value;
66
-        $this->right = ':' . $this->bindLabel($bind_prefix);
66
+        $this->right = ':'.$this->bindLabel($bind_prefix);
67 67
         return $this;
68 68
     }
69 69
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
 
76 76
         $bind_label = $this->bindLabel($bind_prefix);
77 77
         foreach ($values as $index => $val) {
78
-            $this->bindings[sprintf('%s_%d',$bind_label, $index)] = $val;
78
+            $this->bindings[sprintf('%s_%d', $bind_label, $index)] = $val;
79 79
         }
80 80
 
81 81
         $this->operator = 'IN';
82
-        $this->right = '(:' . implode(',:', array_keys($this->bindings)) . ')';
82
+        $this->right = '(:'.implode(',:', array_keys($this->bindings)).')';
83 83
 
84 84
         return $this;
85 85
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
 
126 126
         if ($prefix !== null)
127
-            $this->bind_label = $prefix . '_' . $this->bind_label;
127
+            $this->bind_label = $prefix.'_'.$this->bind_label;
128 128
 
129 129
         return $this->bind_label;
130 130
     }
Please login to merge, or discard this patch.
src/Grammar/Clause/Where.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
     public function __construct(array $predicates = null)
12 12
     {
13
-        if ($predicates !== null){
13
+        if ($predicates !== null) {
14 14
             foreach ($predicates as $predicate) {
15 15
                 if (is_string($predicate))
16 16
                     $this->and($predicate);
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             return '';
27 27
         }
28 28
 
29
-        return 'WHERE ' . implode(' AND ', $this->and);
29
+        return 'WHERE '.implode(' AND ', $this->and);
30 30
     }
31 31
 
32 32
     public function name(): string
Please login to merge, or discard this patch.
src/Grammar/Query/Query.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if (empty($this->bindings)) {
39 39
             unset($dbg['bindings']);
40 40
         }
41
-        else{
41
+        else {
42 42
             $dbg['bindings'] = json_encode($dbg['bindings']);
43 43
         }
44 44
 
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 
100 100
     public function bindings(): array
101 101
     {
102
-        if(empty($this->clauses)){
102
+        if (empty($this->clauses)) {
103 103
             return $this->bindings;
104 104
         }
105 105
 
106
-        return array_merge($this->bindings, array_reduce($this->clauses, function ($carry, $clause) {
106
+        return array_merge($this->bindings, array_reduce($this->clauses, function($carry, $clause) {
107 107
             return array_merge($carry, $clause->bindings());
108 108
         }, []));
109 109
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
     public function bindLabel($field, $table_name = null): string
121 121
     {
122
-        return ':' . $this->tableLabel($table_name) . '_' . $field;
122
+        return ':'.$this->tableLabel($table_name).'_'.$field;
123 123
     }
124 124
 
125 125
     public function addBindings($assoc_data): array
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
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $schema = Grammar::identifier($this->table());
26 26
         if (!empty($this->alias())) {
27
-            $schema .= ' ' . Grammar::identifier($this->alias());
27
+            $schema .= ' '.Grammar::identifier($this->alias());
28 28
         }
29 29
 
30 30
         $ret = sprintf('SELECT %s FROM %s', $this->deck, $schema);
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
                 Clause::LIMIT
40 40
             ] as $clause
41 41
         ) {
42
-            if($this->clause($clause) === null)
42
+            if ($this->clause($clause) === null)
43 43
                 continue;
44 44
 
45
-            $ret .= ' ' . $this->clause($clause);
45
+            $ret .= ' '.$this->clause($clause);
46 46
         }
47 47
 
48 48
         return $ret;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             if (is_int($alias)) {
80 80
                 $alias = null;
81 81
             }
82
-            if(!isset($this->deck)){
82
+            if (!isset($this->deck)) {
83 83
                 $this->deck = new Deck($column, $alias);
84 84
             } else {
85 85
                 $this->deck->add($column, $alias);
Please login to merge, or discard this patch.