@@ -56,7 +56,7 @@ |
||
56 | 56 | }; |
57 | 57 | $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) { |
58 | 58 | return '(strcmp(substr('.$params[0].', strlen('.$params[0].') - strlen('.$params[1].')), ' |
59 | - .$params[1].') === 0)'; |
|
59 | + .$params[1].') === 0)'; |
|
60 | 60 | }; |
61 | 61 | $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) { |
62 | 62 | return 'strpos('.$params[0].', '.$params[1].')'; |
@@ -301,17 +301,17 @@ |
||
301 | 301 | $lastCode = $code[strlen($code) - 1]; |
302 | 302 | assert('}' == $lastCode, 'Final character of function definition must be closing brace'); |
303 | 303 | foreach ([ |
304 | - 'hasMany', |
|
305 | - 'hasManyThrough', |
|
306 | - 'belongsToMany', |
|
307 | - 'hasOne', |
|
308 | - 'belongsTo', |
|
309 | - 'morphOne', |
|
310 | - 'morphTo', |
|
311 | - 'morphMany', |
|
312 | - 'morphToMany', |
|
313 | - 'morphedByMany' |
|
314 | - ] as $relation) { |
|
304 | + 'hasMany', |
|
305 | + 'hasManyThrough', |
|
306 | + 'belongsToMany', |
|
307 | + 'hasOne', |
|
308 | + 'belongsTo', |
|
309 | + 'morphOne', |
|
310 | + 'morphTo', |
|
311 | + 'morphMany', |
|
312 | + 'morphToMany', |
|
313 | + 'morphedByMany' |
|
314 | + ] as $relation) { |
|
315 | 315 | $search = '$this->' . $relation . '('; |
316 | 316 | if ($pos = stripos($code, $search)) { |
317 | 317 | //Resolve the relation's model to a Relation object. |
@@ -51,7 +51,7 @@ |
||
51 | 51 | public function getAssociationType() |
52 | 52 | { |
53 | 53 | return new AssociationType($this->first->getMultiplicity()->getValue() |
54 | - | $this->last->getMultiplicity()->getValue()); |
|
54 | + | $this->last->getMultiplicity()->getValue()); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -443,7 +443,6 @@ discard block |
||
443 | 443 | * @param ResourceType &$resourceType Describes the type of |
444 | 444 | * bag object |
445 | 445 | * |
446 | - |
|
447 | 446 | * @return ODataPropertyContent |
448 | 447 | */ |
449 | 448 | public function writeTopLevelBagObject(QueryResult &$BagValue, $propertyName, ResourceType &$resourceType) |
@@ -771,10 +770,10 @@ discard block |
||
771 | 770 | { |
772 | 771 | $queryParameterString = null; |
773 | 772 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
774 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
775 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
776 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
777 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
773 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
774 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
775 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
776 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
778 | 777 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
779 | 778 | if (null !== $value) { |
780 | 779 | if (null !== $queryParameterString) { |