Test Failed
Push — master ( 9a0773...1fd30e )
by Sébastien
07:48
created
src/Query/Custom/KeyValue/KeyValueQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
         $this->statements['offset'] = null;
187 187
         $this->statements['aggregate'] = ['count', $columns ?: '*'];
188 188
 
189
-        $count = (int)$this->execute()[0]['aggregate'];
189
+        $count = (int) $this->execute()[0]['aggregate'];
190 190
 
191 191
         $this->compilerState->invalidate();
192 192
         $this->statements = $statements;
Please login to merge, or discard this patch.
src/Query/QueryRepositoryExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             return $entity;
127 127
         }
128 128
 
129
-        throw new EntityNotFoundException('Cannot resolve entity identifier "'.implode('", "', (array)$id).'"');
129
+        throw new EntityNotFoundException('Cannot resolve entity identifier "'.implode('", "', (array) $id).'"');
130 130
     }
131 131
 
132 132
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function with(ReadCommandInterface $query, $relations)
174 174
     {
175
-        $this->withRelations = Relation::sanitizeRelations((array)$relations);
175
+        $this->withRelations = Relation::sanitizeRelations((array) $relations);
176 176
 
177 177
         return $query;
178 178
     }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function without(ReadCommandInterface $query, $relations)
189 189
     {
190
-        $this->withoutRelations = Relation::sanitizeWithoutRelations((array)$relations);
190
+        $this->withoutRelations = Relation::sanitizeWithoutRelations((array) $relations);
191 191
 
192 192
         return $query;
193 193
     }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
         $scopes = $this->repository->scopes();
286 286
 
287 287
         if (!isset($scopes[$name])) {
288
-            throw new BadMethodCallException('Method "' . get_class($this->repository) . '::' . $name . '" not found');
288
+            throw new BadMethodCallException('Method "'.get_class($this->repository).'::'.$name.'" not found');
289 289
         }
290 290
 
291 291
         return $scopes[$name](...$arguments);
Please login to merge, or discard this patch.
src/Query/Clause.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
                     $this->buildRaw($statement, $value, $glue);
127 127
                 } else {
128 128
                     // Column with operator
129
-                    $key  = explode(' ', trim($key), 2);
129
+                    $key = explode(' ', trim($key), 2);
130 130
                     $parts[] = [
131 131
                         'column'    => $key[0],
132 132
                         'operator'  => isset($key[1]) ? $key[1] : '=',
Please login to merge, or discard this patch.
src/Query/Expression/Raw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function __toString()
35 35
     {
36
-        return (string)$this->value;
36
+        return (string) $this->value;
37 37
     }
38 38
     
39 39
     /**
Please login to merge, or discard this patch.
src/Query/Compiler/CompilerState.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         //TODO quand doit on unset l'index '0' ?
59 59
 
60
-        foreach ((array)$parts as $part) {
60
+        foreach ((array) $parts as $part) {
61 61
             unset($this->bindings[$part]);
62 62
             unset($this->compiledParts[$part]);
63 63
         }
Please login to merge, or discard this patch.
src/Query/Compiler/AliasResolver/AliasResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -398,7 +398,7 @@
 block discarded – undo
398 398
             }
399 399
 
400 400
             // If we have polymophism, add to alias
401
-            $relation->join($this->query, $alias . (isset($relationName[1]) ? '#' . $relationName[1] : ''));
401
+            $relation->join($this->query, $alias.(isset($relationName[1]) ? '#'.$relationName[1] : ''));
402 402
             $relation->setLocalAlias(null);
403 403
         }
404 404
 
Please login to merge, or discard this patch.
src/Query/Factory/DefaultQueryFactory.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -94,16 +94,16 @@
 block discarded – undo
94 94
      */
95 95
     public function compiler($query)
96 96
     {
97
-         if (!isset($this->compilers[$query])) {
98
-             return $this->defaultCompiler;
99
-         }
97
+            if (!isset($this->compilers[$query])) {
98
+                return $this->defaultCompiler;
99
+            }
100 100
 
101
-         $compiler = $this->compilers[$query];
101
+            $compiler = $this->compilers[$query];
102 102
 
103
-         if (is_string($compiler)) {
104
-             return $this->compilers[$query] = new $compiler($this->connection);
105
-         }
103
+            if (is_string($compiler)) {
104
+                return $this->compilers[$query] = new $compiler($this->connection);
105
+            }
106 106
 
107
-         return $compiler;
107
+            return $compiler;
108 108
     }
109 109
 }
Please login to merge, or discard this patch.
src/Query/Pagination/AbstractPaginator.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     public function pushAll(array $items)
181 181
     {
182 182
         if (!($this->collection instanceof CollectionInterface)) {
183
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
183
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
184 184
         }
185 185
         
186 186
         $this->collection->pushAll($items);
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     public function push($item)
195 195
     {
196 196
         if (!($this->collection instanceof CollectionInterface)) {
197
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
197
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
198 198
         }
199 199
         
200 200
         $this->collection->push($item);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     public function put($key, $item)
209 209
     {
210 210
         if (!($this->collection instanceof CollectionInterface)) {
211
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
211
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
212 212
         }
213 213
         
214 214
         $this->collection->put($key, $item);
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     public function get($key, $default = null)
245 245
     {
246 246
         if (!($this->collection instanceof CollectionInterface)) {
247
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
247
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
248 248
         }
249 249
         
250 250
         return $this->collection->get($key, $default);
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     public function has($key)
267 267
     {
268 268
         if (!($this->collection instanceof CollectionInterface)) {
269
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
269
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
270 270
         }
271 271
         
272 272
         return $this->collection->has($key);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     public function remove($key)
289 289
     {
290 290
         if (!($this->collection instanceof CollectionInterface)) {
291
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
291
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
292 292
         }
293 293
         
294 294
         $this->collection->remove($key);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     public function clear()
313 313
     {
314 314
         if (!($this->collection instanceof CollectionInterface)) {
315
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
315
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
316 316
         }
317 317
         
318 318
         $this->collection->clear();
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     public function keys()
327 327
     {
328 328
         if (!($this->collection instanceof CollectionInterface)) {
329
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
329
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
330 330
         }
331 331
         
332 332
         return $this->collection->keys();
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     public function isEmpty()
339 339
     {
340 340
         if (!($this->collection instanceof CollectionInterface)) {
341
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
341
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
342 342
         }
343 343
         
344 344
         return $this->collection->isEmpty();
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     public function map($callback)
351 351
     {
352 352
         if (!($this->collection instanceof CollectionInterface)) {
353
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
353
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
354 354
         }
355 355
         
356 356
         $this->collection = $this->collection->map($callback);
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     public function filter($callback = null)
365 365
     {
366 366
         if (!($this->collection instanceof CollectionInterface)) {
367
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
367
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
368 368
         }
369 369
         
370 370
         $this->collection = $this->collection->filter($callback);
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
     public function groupBy($groupBy, $mode = PaginatorInterface::GROUPBY)
379 379
     {
380 380
         if (!($this->collection instanceof CollectionInterface)) {
381
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
381
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
382 382
         }
383 383
         
384 384
         $this->collection = $this->collection->groupBy($groupBy, $mode);
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     public function contains($element)
393 393
     {
394 394
         if (!($this->collection instanceof CollectionInterface)) {
395
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
395
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
396 396
         }
397 397
         
398 398
         return $this->collection->contains($element);
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     public function indexOf($value, $strict = false)
405 405
     {
406 406
         if (!($this->collection instanceof CollectionInterface)) {
407
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
407
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
408 408
         }
409 409
         
410 410
         return $this->collection->indexOf($value, $strict);
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     public function merge($items)
417 417
     {
418 418
         if (!($this->collection instanceof CollectionInterface)) {
419
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
419
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
420 420
         }
421 421
         
422 422
         $this->collection = $this->collection->merge($items);
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
     public function sort(callable $callback = null)
431 431
     {
432 432
         if (!($this->collection instanceof CollectionInterface)) {
433
-            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method ' . __METHOD__);
433
+            throw new \LogicException('Collection is not an instance of CollectionInterface. Could not call method '.__METHOD__);
434 434
         }
435 435
         
436 436
         $this->collection = $this->collection->sort($callback);
Please login to merge, or discard this patch.
src/Console/UpgraderCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             $io->newLine();
103 103
         }
104 104
 
105
-        $io->info('Found ' . $nbWarning . ' upgrade(s)');
105
+        $io->info('Found '.$nbWarning.' upgrade(s)');
106 106
 
107 107
         return 0;
108 108
     }
Please login to merge, or discard this patch.