@@ -54,7 +54,7 @@ |
||
54 | 54 | }; |
55 | 55 | $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) { |
56 | 56 | return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), ' |
57 | - .$params[1] . ') === 0)'; |
|
57 | + .$params[1] . ') === 0)'; |
|
58 | 58 | }; |
59 | 59 | $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) { |
60 | 60 | return 'strpos(' . $params[0] . ', ' . $params[1] . ')'; |
@@ -369,7 +369,7 @@ |
||
369 | 369 | $builder = $connect->getSchemaBuilder(); |
370 | 370 | $columns = $builder->getColumnListing($table); |
371 | 371 | |
372 | - self::$tableColumns = (array)$columns; |
|
372 | + self::$tableColumns = (array) $columns; |
|
373 | 373 | } |
374 | 374 | return self::$tableColumns; |
375 | 375 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $values = $skipToken->getOrderByKeysInToken(); |
38 | 38 | $numValues = count($values); |
39 | 39 | if ($numValues != count($segments)) { |
40 | - $msg = 'Expected '.count($segments).', got '.$numValues; |
|
40 | + $msg = 'Expected ' . count($segments) . ', got ' . $numValues; |
|
41 | 41 | throw new InvalidOperationException($msg); |
42 | 42 | } |
43 | 43 |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | // so we can't bail out early |
383 | 383 | $rawCount += $results->count(); |
384 | 384 | // now bolt on filtrate to accumulating result set if we haven't accumulated enough bitz |
385 | - if ($rawTop > $resultSet->count() + $skip) { |
|
385 | + if ($rawTop > $resultSet->count()+$skip) { |
|
386 | 386 | $resultSet = collect(array_merge($resultSet->all(), $results->all())); |
387 | 387 | $sliceAmount = min($skip, $resultSet->count()); |
388 | 388 | $resultSet = $resultSet->slice($sliceAmount); |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | if (QueryType::COUNT() == $qVal || QueryType::ENTITIES_WITH_COUNT() == $qVal) { |
455 | 455 | $result->count = $resultCount; |
456 | 456 | } |
457 | - $hazMore = $bulkSetCount > $skip + count($resultSet); |
|
457 | + $hazMore = $bulkSetCount > $skip+count($resultSet); |
|
458 | 458 | $result->hasMore = $hazMore; |
459 | 459 | } |
460 | 460 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | public function getRelationships() |
36 | 36 | { |
37 | 37 | return self::$relationNames = self::$relationNames ?? |
38 | - ModelReflectionHelper::getRelationshipsFromMethods(/* @scrutinizer ignore-type */$this); |
|
38 | + ModelReflectionHelper::getRelationshipsFromMethods(/* @scrutinizer ignore-type */$this); |
|
39 | 39 | } |
40 | 40 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | { |
117 | 117 | /** @var SimpleMetadataProvider $meta */ |
118 | 118 | $meta = App::make('metadata'); |
119 | - $namespace = $meta->getContainerNamespace().'.'; |
|
119 | + $namespace = $meta->getContainerNamespace() . '.'; |
|
120 | 120 | |
121 | 121 | $entities = $objectModel->getEntities(); |
122 | 122 | foreach ($entities as $entity) { |
@@ -131,13 +131,13 @@ discard block |
||
131 | 131 | $entity->setOdataResourceType($entityType); |
132 | 132 | $this->implementProperties($entity); |
133 | 133 | $meta->addResourceSet($pluralName, $entityType); |
134 | - $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace.$entityName]; |
|
134 | + $meta->oDataEntityMap[$className] = $meta->oDataEntityMap[$namespace . $entityName]; |
|
135 | 135 | } |
136 | 136 | $metaCount = count($meta->oDataEntityMap); |
137 | 137 | $entityCount = count($entities); |
138 | 138 | $expected = 2 * $entityCount; |
139 | 139 | if ($metaCount != $expected) { |
140 | - $msg = 'Expected ' . $expected . ' items, actually got '.$metaCount; |
|
140 | + $msg = 'Expected ' . $expected . ' items, actually got ' . $metaCount; |
|
141 | 141 | throw new InvalidOperationException($msg); |
142 | 142 | } |
143 | 143 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $kVal = $typeKind; |
69 | 69 | if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) { |
70 | 70 | $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE' |
71 | - .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
71 | + .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
72 | 72 | throw new InvalidOperationException($msg); |
73 | 73 | } |
74 | 74 | if (null == $result) { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $targClass = $resourceType->getInstanceType()->getName(); |
129 | 129 | if (!($res instanceof $targClass)) { |
130 | 130 | $msg = 'Object being serialised not instance of expected class, ' |
131 | - . $targClass . ', is actually ' . $payloadClass; |
|
131 | + . $targClass . ', is actually ' . $payloadClass; |
|
132 | 132 | throw new InvalidOperationException($msg); |
133 | 133 | } |
134 | 134 | |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind |
573 | 573 | || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) { |
574 | 574 | $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&' |
575 | - . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
575 | + . ' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
576 | 576 | throw new InvalidOperationException($msg); |
577 | 577 | } |
578 | 578 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
@@ -257,10 +257,10 @@ |
||
257 | 257 | |
258 | 258 | private static $fieldOrderCache = [ |
259 | 259 | 'BelongsTo' => ['foreignKey', 'ownerKey'], |
260 | - 'BelongsToMany' => ['parentKey','foreignPivotKey','relatedPivotKey','relatedKey'], |
|
261 | - 'HasOneOrMany' => ['localKey', 'foreignKey' ], |
|
260 | + 'BelongsToMany' => ['parentKey', 'foreignPivotKey', 'relatedPivotKey', 'relatedKey'], |
|
261 | + 'HasOneOrMany' => ['localKey', 'foreignKey'], |
|
262 | 262 | 'HasManyThrough' => ['localKey', 'firstKey', 'secondLocalKey', 'secondKey'], |
263 | - 'MorphToMany' => ['parentKey','foreignPivotKey','morphType', 'relatedPivotKey','relatedKey'], |
|
263 | + 'MorphToMany' => ['parentKey', 'foreignPivotKey', 'morphType', 'relatedPivotKey', 'relatedKey'], |
|
264 | 264 | 'MorphTo' => ['foreignKey', 'morphType', 'ownerKey'], |
265 | 265 | 'MorphOneOrMany' => ['localKey', 'morphType', 'foreignKey'], |
266 | 266 | ]; |