@@ -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] . ')'; |
@@ -789,10 +789,10 @@ |
||
789 | 789 | { |
790 | 790 | $queryParameterString = null; |
791 | 791 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
792 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
793 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
794 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
795 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
792 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
793 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
794 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
795 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
796 | 796 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
797 | 797 | if (null !== $value) { |
798 | 798 | if (null !== $queryParameterString) { |
@@ -238,17 +238,17 @@ |
||
238 | 238 | $lastCode = $code[strlen(/** @scrutinizer ignore-type */$code)-1]; |
239 | 239 | assert('}' == $lastCode, 'Final character of function definition must be closing brace'); |
240 | 240 | foreach ([ |
241 | - 'hasMany', |
|
242 | - 'hasManyThrough', |
|
243 | - 'belongsToMany', |
|
244 | - 'hasOne', |
|
245 | - 'belongsTo', |
|
246 | - 'morphOne', |
|
247 | - 'morphTo', |
|
248 | - 'morphMany', |
|
249 | - 'morphToMany', |
|
250 | - 'morphedByMany' |
|
251 | - ] as $relation) { |
|
241 | + 'hasMany', |
|
242 | + 'hasManyThrough', |
|
243 | + 'belongsToMany', |
|
244 | + 'hasOne', |
|
245 | + 'belongsTo', |
|
246 | + 'morphOne', |
|
247 | + 'morphTo', |
|
248 | + 'morphMany', |
|
249 | + 'morphToMany', |
|
250 | + 'morphedByMany' |
|
251 | + ] as $relation) { |
|
252 | 252 | $search = '$this->' . $relation . '('; |
253 | 253 | if (stripos(/** @scrutinizer ignore-type */$code, $search)) { |
254 | 254 | //Resolve the relation's model to a Relation object. |