@@ -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] . ')'; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $others = $this->getRelationsByRelationName($className, $relName); |
71 | 71 | if ($stub instanceof AssociationStubMonomorphic) { |
72 | 72 | $msg = 'Monomorphic relation stub on ' . $className . ' ' . $relName |
73 | - . ' should point to at most 1 other stub'; |
|
73 | + . ' should point to at most 1 other stub'; |
|
74 | 74 | if (!(1 >= count($others))) { |
75 | 75 | throw new InvalidOperationException($msg); |
76 | 76 | } |
@@ -249,17 +249,17 @@ |
||
249 | 249 | throw new InvalidOperationException($msg); |
250 | 250 | } |
251 | 251 | foreach ([ |
252 | - 'hasMany', |
|
253 | - 'hasManyThrough', |
|
254 | - 'belongsToMany', |
|
255 | - 'hasOne', |
|
256 | - 'belongsTo', |
|
257 | - 'morphOne', |
|
258 | - 'morphTo', |
|
259 | - 'morphMany', |
|
260 | - 'morphToMany', |
|
261 | - 'morphedByMany' |
|
262 | - ] as $relation) { |
|
252 | + 'hasMany', |
|
253 | + 'hasManyThrough', |
|
254 | + 'belongsToMany', |
|
255 | + 'hasOne', |
|
256 | + 'belongsTo', |
|
257 | + 'morphOne', |
|
258 | + 'morphTo', |
|
259 | + 'morphMany', |
|
260 | + 'morphToMany', |
|
261 | + 'morphedByMany' |
|
262 | + ] as $relation) { |
|
263 | 263 | $search = '$this->' . $relation . '('; |
264 | 264 | if (stripos(/* @scrutinizer ignore-type */$code, $search)) { |
265 | 265 | //Resolve the relation's model to a Relation object. |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $targClass = $resourceType->getInstanceType()->getName(); |
180 | 180 | if (!($entryObject->results instanceof $targClass)) { |
181 | 181 | $msg = 'Object being serialised not instance of expected class, ' |
182 | - . $targClass . ', is actually ' . $payloadClass; |
|
182 | + . $targClass . ', is actually ' . $payloadClass; |
|
183 | 183 | throw new InvalidOperationException($msg); |
184 | 184 | } |
185 | 185 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind |
234 | 234 | || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) { |
235 | 235 | $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&' |
236 | - .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
236 | + .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
237 | 237 | throw new InvalidOperationException($msg); |
238 | 238 | } |
239 | 239 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
@@ -782,10 +782,10 @@ discard block |
||
782 | 782 | { |
783 | 783 | $queryParameterString = null; |
784 | 784 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
785 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
786 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
787 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
788 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
785 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
786 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
787 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
788 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
789 | 789 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
790 | 790 | if (null !== $value) { |
791 | 791 | if (null !== $queryParameterString) { |
@@ -972,7 +972,7 @@ discard block |
||
972 | 972 | $typeKind = $resourceType->getResourceTypeKind(); |
973 | 973 | if (!(ResourceTypeKind::PRIMITIVE() == $typeKind || ResourceTypeKind::COMPLEX() == $typeKind)) { |
974 | 974 | $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE' |
975 | - .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
975 | + .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
976 | 976 | throw new InvalidOperationException($msg); |
977 | 977 | } |
978 | 978 | if (null == $result) { |
@@ -1028,12 +1028,12 @@ discard block |
||
1028 | 1028 | $internalProperty = new ODataProperty(); |
1029 | 1029 | $internalProperty->name = $propName; |
1030 | 1030 | if (/** |
1031 | - * @param Mockery_41_POData_Providers_Metadata_ResourceType|ResourceType $resourceType |
|
1032 | - * @param AlgoWeb\PODataLaravel\Models\TestMonomorphicTarget|AlgoWeb\PODataLaravel\Serialisers\reusableEntityClass1|string[] $result |
|
1033 | - * @param string $propertyName |
|
1034 | - * |
|
1035 | - * @return POData\ObjectModel\ODataPropertyContent|null |
|
1036 | - */ |
|
1031 | + * @param Mockery_41_POData_Providers_Metadata_ResourceType|ResourceType $resourceType |
|
1032 | + * @param AlgoWeb\PODataLaravel\Models\TestMonomorphicTarget|AlgoWeb\PODataLaravel\Serialisers\reusableEntityClass1|string[] $result |
|
1033 | + * @param string $propertyName |
|
1034 | + * |
|
1035 | + * @return POData\ObjectModel\ODataPropertyContent|null |
|
1036 | + */ |
|
1037 | 1037 | static::/** |
1038 | 1038 | * @param Mockery_41_POData_Providers_Metadata_ResourceType|ResourceType $resourceType |
1039 | 1039 | * @param AlgoWeb\PODataLaravel\Models\TestMonomorphicTarget|AlgoWeb\PODataLaravel\Serialisers\reusableEntityClass1|string[] $result |