@@ -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] . ')'; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $targClass = $resourceType->getInstanceType()->getName(); |
184 | 184 | if (!($entryObject->results instanceof $targClass)) { |
185 | 185 | $msg = 'Object being serialised not instance of expected class, ' |
186 | - . $targClass . ', is actually ' . $payloadClass; |
|
186 | + . $targClass . ', is actually ' . $payloadClass; |
|
187 | 187 | throw new InvalidOperationException($msg); |
188 | 188 | } |
189 | 189 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | if (!(ResourcePropertyKind::RESOURCESET_REFERENCE == $propKind |
238 | 238 | || ResourcePropertyKind::RESOURCE_REFERENCE == $propKind)) { |
239 | 239 | $msg = '$propKind != ResourcePropertyKind::RESOURCESET_REFERENCE &&' |
240 | - .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
240 | + .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE'; |
|
241 | 241 | throw new InvalidOperationException($msg); |
242 | 242 | } |
243 | 243 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
@@ -822,10 +822,10 @@ discard block |
||
822 | 822 | { |
823 | 823 | $queryParameterString = null; |
824 | 824 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
825 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
826 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
827 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
828 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
825 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
826 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
827 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
828 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
829 | 829 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
830 | 830 | if (null !== $value) { |
831 | 831 | if (null !== $queryParameterString) { |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | $typeKind = $resourceType->getResourceTypeKind(); |
1010 | 1010 | if (!(ResourceTypeKind::PRIMITIVE() == $typeKind || ResourceTypeKind::COMPLEX() == $typeKind)) { |
1011 | 1011 | $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE' |
1012 | - .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
1012 | + .' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
1013 | 1013 | throw new InvalidOperationException($msg); |
1014 | 1014 | } |
1015 | 1015 | if (null == $result) { |
@@ -244,17 +244,17 @@ |
||
244 | 244 | throw new InvalidOperationException($msg); |
245 | 245 | } |
246 | 246 | foreach ([ |
247 | - 'hasMany', |
|
248 | - 'hasManyThrough', |
|
249 | - 'belongsToMany', |
|
250 | - 'hasOne', |
|
251 | - 'belongsTo', |
|
252 | - 'morphOne', |
|
253 | - 'morphTo', |
|
254 | - 'morphMany', |
|
255 | - 'morphToMany', |
|
256 | - 'morphedByMany' |
|
257 | - ] as $relation) { |
|
247 | + 'hasMany', |
|
248 | + 'hasManyThrough', |
|
249 | + 'belongsToMany', |
|
250 | + 'hasOne', |
|
251 | + 'belongsTo', |
|
252 | + 'morphOne', |
|
253 | + 'morphTo', |
|
254 | + 'morphMany', |
|
255 | + 'morphToMany', |
|
256 | + 'morphedByMany' |
|
257 | + ] as $relation) { |
|
258 | 258 | $search = '$this->' . $relation . '('; |
259 | 259 | if (stripos(/** @scrutinizer ignore-type */$code, $search)) { |
260 | 260 | //Resolve the relation's model to a Relation object. |
@@ -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 | } |