Passed
Push — master ( ba77f6...229fac )
by Alex
07:41
created
src/Query/LaravelReadQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 foreach ($order->getSubPathSegments() as $subOrder) {
104 104
                     $subName = $subOrder->getName();
105 105
                     $subName = (self::PK == $subName) ? $keyName : $subName;
106
-                    $subName = $tableName.'.'.$subName;
106
+                    $subName = $tableName . '.' . $subName;
107 107
                     $sourceEntityInstance = $sourceEntityInstance->orderBy(
108 108
                         $subName,
109 109
                         $order->isAscending() ? 'asc' : 'desc'
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
             assert(is_string($line), 'Eager-load elements must be non-empty strings');
426 426
             $lineParts = explode('/', $line);
427 427
             $numberOfParts = count($lineParts);
428
-            for ($i = 0; $i<$numberOfParts; $i++) {
428
+            for ($i = 0; $i < $numberOfParts; $i++) {
429 429
                 $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]);
430 430
             }
431 431
             $remixLine = implode('.', $lineParts);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
                     // so we can't bail out early
508 508
                     $rawCount += $results->count();
509 509
                     // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz
510
-                    if ($rawTop > $resultSet->count() + $skip) {
510
+                    if ($rawTop > $resultSet->count()+$skip) {
511 511
                         $resultSet = collect(array_merge($resultSet->all(), $results->all()));
512 512
                         $sliceAmount = min($skip, $resultSet->count());
513 513
                         $resultSet = $resultSet->slice($sliceAmount);
Please login to merge, or discard this patch.