@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | foreach ($orderBy->getOrderByInfo()->getOrderByPathSegments() as $order) { |
101 | 101 | foreach ($order->getSubPathSegments() as $subOrder) { |
102 | 102 | $subName = $subOrder->getName(); |
103 | - $subName = $tableName.'.'.$subName; |
|
103 | + $subName = $tableName . '.' . $subName; |
|
104 | 104 | $sourceEntityInstance = $sourceEntityInstance->orderBy( |
105 | 105 | $subName, |
106 | 106 | $order->isAscending() ? 'asc' : 'desc' |
@@ -401,10 +401,10 @@ discard block |
||
401 | 401 | private function processKeyDescriptor(&$sourceEntityInstance, KeyDescriptor $keyDescriptor = null) |
402 | 402 | { |
403 | 403 | if ($keyDescriptor) { |
404 | - $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable().'.' : ''; |
|
404 | + $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable() . '.' : ''; |
|
405 | 405 | foreach ($keyDescriptor->getValidatedNamedValues() as $key => $value) { |
406 | 406 | $trimValue = trim($value[0], '\''); |
407 | - $sourceEntityInstance = $sourceEntityInstance->where($table.$key, $trimValue); |
|
407 | + $sourceEntityInstance = $sourceEntityInstance->where($table . $key, $trimValue); |
|
408 | 408 | } |
409 | 409 | } |
410 | 410 | } |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | assert(is_string($line), 'Eager-load elements must be non-empty strings'); |
422 | 422 | $lineParts = explode('/', $line); |
423 | 423 | $numberOfParts = count($lineParts); |
424 | - for ($i = 0; $i<$numberOfParts; $i++) { |
|
424 | + for ($i = 0; $i < $numberOfParts; $i++) { |
|
425 | 425 | $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]); |
426 | 426 | } |
427 | 427 | $remixLine = implode('.', $lineParts); |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | // so we can't bail out early |
503 | 503 | $rawCount += $results->count(); |
504 | 504 | // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz |
505 | - if ($rawTop > $resultSet->count() + $skip) { |
|
505 | + if ($rawTop > $resultSet->count()+$skip) { |
|
506 | 506 | $resultSet = collect(array_merge($resultSet->all(), $results->all())); |
507 | 507 | $sliceAmount = min($skip, $resultSet->count()); |
508 | 508 | $resultSet = $resultSet->slice($sliceAmount); |