@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | foreach ($orderBy->getOrderByInfo()->getOrderByPathSegments() as $order) { |
84 | 84 | foreach ($order->getSubPathSegments() as $subOrder) { |
85 | 85 | $subName = $subOrder->getName(); |
86 | - $subName = $tableName.'.'.$subName; |
|
86 | + $subName = $tableName . '.' . $subName; |
|
87 | 87 | $sourceEntityInstance = $sourceEntityInstance->orderBy( |
88 | 88 | $subName, |
89 | 89 | $order->isAscending() ? 'asc' : 'desc' |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | if (QueryType::COUNT() == $qVal || QueryType::ENTITIES_WITH_COUNT() == $qVal) { |
139 | 139 | $result->count = $resultCount; |
140 | 140 | } |
141 | - $hazMore = $bulkSetCount > $skip + count($resultSet); |
|
141 | + $hazMore = $bulkSetCount > $skip+count($resultSet); |
|
142 | 142 | $result->hasMore = $hazMore; |
143 | 143 | return $result; |
144 | 144 | } |
@@ -404,10 +404,10 @@ discard block |
||
404 | 404 | private function processKeyDescriptor(&$sourceEntityInstance, KeyDescriptor $keyDescriptor = null) |
405 | 405 | { |
406 | 406 | if ($keyDescriptor) { |
407 | - $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable().'.' : ''; |
|
407 | + $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable() . '.' : ''; |
|
408 | 408 | foreach ($keyDescriptor->getValidatedNamedValues() as $key => $value) { |
409 | 409 | $trimValue = trim($value[0], '\''); |
410 | - $sourceEntityInstance = $sourceEntityInstance->where($table.$key, $trimValue); |
|
410 | + $sourceEntityInstance = $sourceEntityInstance->where($table . $key, $trimValue); |
|
411 | 411 | } |
412 | 412 | } |
413 | 413 | } |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | } |
428 | 428 | $lineParts = explode('/', $line); |
429 | 429 | $numberOfParts = count($lineParts); |
430 | - for ($i = 0; $i<$numberOfParts; $i++) { |
|
430 | + for ($i = 0; $i < $numberOfParts; $i++) { |
|
431 | 431 | $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]); |
432 | 432 | } |
433 | 433 | $remixLine = implode('.', $lineParts); |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | $values = $skipToken->getOrderByKeysInToken(); |
465 | 465 | $numValues = count($values); |
466 | 466 | if ($numValues != count($segments)) { |
467 | - $msg = 'Expected '.count($segments).', got '.$numValues; |
|
467 | + $msg = 'Expected ' . count($segments) . ', got ' . $numValues; |
|
468 | 468 | throw new InvalidOperationException($msg); |
469 | 469 | } |
470 | 470 | |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | // so we can't bail out early |
537 | 537 | $rawCount += $results->count(); |
538 | 538 | // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz |
539 | - if ($rawTop > $resultSet->count() + $skip) { |
|
539 | + if ($rawTop > $resultSet->count()+$skip) { |
|
540 | 540 | $resultSet = collect(array_merge($resultSet->all(), $results->all())); |
541 | 541 | $sliceAmount = min($skip, $resultSet->count()); |
542 | 542 | $resultSet = $resultSet->slice($sliceAmount); |