@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | private function implement(Map $objectModel) |
130 | 130 | { |
131 | 131 | $meta = App::make('metadata'); |
132 | - $namespace = $meta->getContainerNamespace().'.'; |
|
132 | + $namespace = $meta->getContainerNamespace() . '.'; |
|
133 | 133 | |
134 | 134 | $entities = $objectModel->getEntities(); |
135 | 135 | foreach ($entities as $entity) { |
@@ -144,13 +144,13 @@ discard block |
||
144 | 144 | $entity->setOdataResourceType($entityType); |
145 | 145 | $this->implementProperties($entity); |
146 | 146 | $meta->addResourceSet($pluralName, $entityType); |
147 | - $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName]; |
|
147 | + $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName]; |
|
148 | 148 | } |
149 | 149 | $metaCount = count($meta->oDataEntityMap); |
150 | 150 | $entityCount = count($entities); |
151 | 151 | $expected = 2 * $entityCount; |
152 | 152 | if ($metaCount != $expected) { |
153 | - $msg = 'Expected ' . $expected . ' items, actually got '.$metaCount; |
|
153 | + $msg = 'Expected ' . $expected . ' items, actually got ' . $metaCount; |
|
154 | 154 | throw new InvalidOperationException($msg); |
155 | 155 | } |
156 | 156 |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | foreach ($orderBy->getOrderByInfo()->getOrderByPathSegments() as $order) { |
103 | 103 | foreach ($order->getSubPathSegments() as $subOrder) { |
104 | 104 | $subName = $subOrder->getName(); |
105 | - $subName = $tableName.'.'.$subName; |
|
105 | + $subName = $tableName . '.' . $subName; |
|
106 | 106 | $sourceEntityInstance = $sourceEntityInstance->orderBy( |
107 | 107 | $subName, |
108 | 108 | $order->isAscending() ? 'asc' : 'desc' |
@@ -411,10 +411,10 @@ discard block |
||
411 | 411 | private function processKeyDescriptor(&$sourceEntityInstance, KeyDescriptor $keyDescriptor = null) |
412 | 412 | { |
413 | 413 | if ($keyDescriptor) { |
414 | - $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable().'.' : ''; |
|
414 | + $table = ($sourceEntityInstance instanceof Model) ? $sourceEntityInstance->getTable() . '.' : ''; |
|
415 | 415 | foreach ($keyDescriptor->getValidatedNamedValues() as $key => $value) { |
416 | 416 | $trimValue = trim($value[0], '\''); |
417 | - $sourceEntityInstance = $sourceEntityInstance->where($table.$key, $trimValue); |
|
417 | + $sourceEntityInstance = $sourceEntityInstance->where($table . $key, $trimValue); |
|
418 | 418 | } |
419 | 419 | } |
420 | 420 | } |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | } |
434 | 434 | $lineParts = explode('/', $line); |
435 | 435 | $numberOfParts = count($lineParts); |
436 | - for ($i = 0; $i<$numberOfParts; $i++) { |
|
436 | + for ($i = 0; $i < $numberOfParts; $i++) { |
|
437 | 437 | $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]); |
438 | 438 | } |
439 | 439 | $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 | |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | // so we can't bail out early |
520 | 520 | $rawCount += $results->count(); |
521 | 521 | // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz |
522 | - if ($rawTop > $resultSet->count() + $skip) { |
|
522 | + if ($rawTop > $resultSet->count()+$skip) { |
|
523 | 523 | $resultSet = collect(array_merge($resultSet->all(), $results->all())); |
524 | 524 | $sliceAmount = min($skip, $resultSet->count()); |
525 | 525 | $resultSet = $resultSet->slice($sliceAmount); |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | public function retrieveCasts() |
636 | 636 | { |
637 | 637 | $exists = method_exists($this, 'getCasts'); |
638 | - return $exists ? (array)$this->getCasts() : (array)$this->casts; |
|
638 | + return $exists ? (array) $this->getCasts() : (array) $this->casts; |
|
639 | 639 | } |
640 | 640 | |
641 | 641 | /** |
@@ -782,7 +782,7 @@ discard block |
||
782 | 782 | $builder = $connect->getSchemaBuilder(); |
783 | 783 | $columns = $builder->getColumnListing($table); |
784 | 784 | |
785 | - self::$tableColumns = (array)$columns; |
|
785 | + self::$tableColumns = (array) $columns; |
|
786 | 786 | } |
787 | 787 | return self::$tableColumns; |
788 | 788 | } |