@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | foreach ($orderBy->getOrderByInfo()->getOrderByPathSegments() as $order) { |
81 | 81 | foreach ($order->getSubPathSegments() as $subOrder) { |
82 | 82 | $subName = $subOrder->getName(); |
83 | - $subName = $tableName.'.'.$subName; |
|
83 | + $subName = $tableName . '.' . $subName; |
|
84 | 84 | $sourceEntityInstance = $sourceEntityInstance->orderBy( |
85 | 85 | $subName, |
86 | 86 | $order->isAscending() ? 'asc' : 'desc' |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | if (QueryType::COUNT() == $qVal || QueryType::ENTITIES_WITH_COUNT() == $qVal) { |
136 | 136 | $result->count = $resultCount; |
137 | 137 | } |
138 | - $hazMore = $bulkSetCount > $skip + count($resultSet); |
|
138 | + $hazMore = $bulkSetCount > $skip+count($resultSet); |
|
139 | 139 | $result->hasMore = $hazMore; |
140 | 140 | return $result; |
141 | 141 | } |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | // so we can't bail out early |
409 | 409 | $rawCount += $results->count(); |
410 | 410 | // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz |
411 | - if ($rawTop > $resultSet->count() + $skip) { |
|
411 | + if ($rawTop > $resultSet->count()+$skip) { |
|
412 | 412 | $resultSet = collect(array_merge($resultSet->all(), $results->all())); |
413 | 413 | $sliceAmount = min($skip, $resultSet->count()); |
414 | 414 | $resultSet = $resultSet->slice($sliceAmount); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $values = $skipToken->getOrderByKeysInToken(); |
37 | 37 | $numValues = count($values); |
38 | 38 | if ($numValues != count($segments)) { |
39 | - $msg = 'Expected '.count($segments).', got '.$numValues; |
|
39 | + $msg = 'Expected ' . count($segments) . ', got ' . $numValues; |
|
40 | 40 | throw new InvalidOperationException($msg); |
41 | 41 | } |
42 | 42 |