Test Failed
Push — master ( f26f13...53a983 )
by Mike
05:15 queued 10s
created
src/CacheKey.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     protected function getLimitClause() : string
46 46
     {
47
-        if (! $this->query->limit) {
47
+        if (!$this->query->limit) {
48 48
             return '';
49 49
         }
50 50
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function getOffsetClause() : string
60 60
     {
61
-        if (! $this->query->offset) {
61
+        if (!$this->query->offset) {
62 62
             return '';
63 63
         }
64 64
 
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
         $orders = collect($this->query->orders);
71 71
 
72 72
         return $orders
73
-            ->reduce(function ($carry, $order) {
73
+            ->reduce(function($carry, $order) {
74 74
                 if (($order['type'] ?? '') === 'Raw') {
75
-                    return $carry . '_orderByRaw_' . str_slug($order['sql']);
75
+                    return $carry.'_orderByRaw_'.str_slug($order['sql']);
76 76
                 }
77 77
 
78
-                return $carry . '_orderBy_' . $order['column'] . '_' . $order['direction'];
78
+                return $carry.'_orderBy_'.$order['column'].'_'.$order['direction'];
79 79
             })
80 80
             ?: '';
81 81
     }
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
             return '';
87 87
         }
88 88
 
89
-        return '_' . implode('_', $columns);
89
+        return '_'.implode('_', $columns);
90 90
     }
91 91
 
92 92
     protected function getTypeClause($where) : string
93 93
     {
94
-        $type =in_array($where['type'], ['In', 'Null', 'NotNull'])
94
+        $type = in_array($where['type'], ['In', 'Null', 'NotNull'])
95 95
             ? strtolower($where['type'])
96 96
             : strtolower($where['operator']);
97 97
 
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
     protected function getValuesClause(array $where = null) : string
102 102
     {
103 103
         return is_array(array_get($where, 'values'))
104
-            ? '_' . implode('_', $where['values'])
104
+            ? '_'.implode('_', $where['values'])
105 105
             : '';
106 106
     }
107 107
 
108 108
     protected function getWhereClauses(array $wheres = []) : string
109 109
     {
110 110
         return $this->getWheres($wheres)
111
-            ->reduce(function ($carry, $where) {
111
+            ->reduce(function($carry, $where) {
112 112
                 $value = $this->getNestedClauses($where);
113 113
                 $value .= $this->getColumnClauses($where);
114 114
                 $value .= $this->getRawClauses($where);
@@ -121,11 +121,11 @@  discard block
 block discarded – undo
121 121
 
122 122
     protected function getNestedClauses(array $where) : string
123 123
     {
124
-        if (! in_array($where['type'], ['Exists', 'Nested', 'NotExists'])) {
124
+        if (!in_array($where['type'], ['Exists', 'Nested', 'NotExists'])) {
125 125
             return '';
126 126
         }
127 127
 
128
-        return '_' . strtolower($where['type']) . $this->getWhereClauses($where['query']->wheres);
128
+        return '_'.strtolower($where['type']).$this->getWhereClauses($where['query']->wheres);
129 129
     }
130 130
 
131 131
     protected function getColumnClauses(array $where) : string
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             return '';
144 144
         }
145 145
 
146
-        return "_{$where['boolean']}_" . str_slug($where['sql']);
146
+        return "_{$where['boolean']}_".str_slug($where['sql']);
147 147
     }
148 148
 
149 149
     protected function getOtherClauses(array $where, string $carry = null) : string
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         }
154 154
 
155 155
         $value = $this->getTypeClause($where);
156
-        $value .= "_" . array_get($where, 'value');
156
+        $value .= "_".array_get($where, 'value');
157 157
         $value .= $this->getValuesClause($where);
158 158
 
159 159
         return "{$carry}-{$where['column']}_{$value}";
@@ -178,6 +178,6 @@  discard block
 block discarded – undo
178 178
             return '';
179 179
         }
180 180
 
181
-        return '-' . implode('-', $eagerLoads->keys()->toArray());
181
+        return '-'.implode('-', $eagerLoads->keys()->toArray());
182 182
     }
183 183
 }
Please login to merge, or discard this patch.