Passed
Push — master ( c30585...90dc34 )
by Christopher
02:43
created
src/FilterBuilder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 $parts[] = "$attribute=$value";
104 104
             }
105 105
         }
106
-        return count($parts) === 1 ? '(' . $parts[0] . ')' : '&(' . implode(') (', $parts) . ')';
106
+        return count($parts) === 1 ? '('.$parts[0].')' : '&('.implode(') (', $parts).')';
107 107
     }
108 108
 
109 109
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             }
124 124
         }
125 125
 
126
-        return empty($parts) ? '' : '(' . $this->operator[$operator] . '(' . implode(') (', $parts) . '))';
126
+        return empty($parts) ? '' : '('.$this->operator[$operator].'('.implode(') (', $parts).'))';
127 127
     }
128 128
 
129 129
     /**
@@ -164,9 +164,9 @@  discard block
 block discarded – undo
164 164
         if (empty($parts)) {
165 165
             return '';
166 166
         } elseif ($operator === 'NOT IN') {
167
-            return '!(' . implode(') (', $parts) . ')';
167
+            return '!('.implode(') (', $parts).')';
168 168
         }
169
-        return count($parts) === 1 ? '(' . $parts[0] . ')' : '|(' . implode(') (', $parts) . ')';
169
+        return count($parts) === 1 ? '('.$parts[0].')' : '|('.implode(') (', $parts).')';
170 170
     }
171 171
 
172 172
     /**
@@ -214,15 +214,15 @@  discard block
 block discarded – undo
214 214
             return '';
215 215
         }
216 216
 
217
-        $not = ($operator == 'NOT LIKE') ? '(' . $this->operator['NOT'] : false;
217
+        $not = ($operator == 'NOT LIKE') ? '('.$this->operator['NOT'] : false;
218 218
 
219 219
         $parts = [];
220 220
         foreach ($values as $value) {
221 221
             $value   = empty($escape) ? $value : strtr($value, $escape);
222
-            $parts[] = $not . '(' . $attribute . '=*' . $value . '*)' . ($not ? ')' : '');
222
+            $parts[] = $not.'('.$attribute.'=*'.$value.'*)'.($not ? ')' : '');
223 223
         }
224 224
 
225
-        return '(' . $this->operator[trim($andor)] . implode($parts) . ')';
225
+        return '('.$this->operator[trim($andor)].implode($parts).')';
226 226
     }
227 227
 
228 228
     /**
Please login to merge, or discard this patch.