@@ -188,8 +188,8 @@ |
||
| 188 | 188 | */ |
| 189 | 189 | protected function updateLightStack(int $newCount): void |
| 190 | 190 | { |
| 191 | - $this->lightStack[$newCount - 1]['count']--; |
|
| 192 | - if (0 == $this->lightStack[$newCount - 1]['count']) { |
|
| 191 | + $this->lightStack[$newCount-1]['count']--; |
|
| 192 | + if (0 == $this->lightStack[$newCount-1]['count']) { |
|
| 193 | 193 | array_pop($this->lightStack); |
| 194 | 194 | } |
| 195 | 195 | } |
@@ -226,10 +226,10 @@ |
||
| 226 | 226 | /** @var array<string, array> */ |
| 227 | 227 | private static $fieldOrderCache = [ |
| 228 | 228 | 'BelongsTo' => ['foreignKey', 'ownerKey'], |
| 229 | - 'BelongsToMany' => ['parentKey','foreignPivotKey','relatedPivotKey','relatedKey'], |
|
| 230 | - 'HasOneOrMany' => ['localKey', 'foreignKey' ], |
|
| 229 | + 'BelongsToMany' => ['parentKey', 'foreignPivotKey', 'relatedPivotKey', 'relatedKey'], |
|
| 230 | + 'HasOneOrMany' => ['localKey', 'foreignKey'], |
|
| 231 | 231 | 'HasManyThrough' => ['localKey', 'firstKey', 'secondLocalKey', 'secondKey'], |
| 232 | - 'MorphToMany' => ['parentKey','foreignPivotKey','morphType', 'relatedPivotKey','relatedKey'], |
|
| 232 | + 'MorphToMany' => ['parentKey', 'foreignPivotKey', 'morphType', 'relatedPivotKey', 'relatedKey'], |
|
| 233 | 233 | 'MorphTo' => ['foreignKey', 'morphType', 'ownerKey'], |
| 234 | 234 | 'MorphOneOrMany' => ['localKey', 'morphType', 'foreignKey'], |
| 235 | 235 | ]; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | }; |
| 59 | 59 | $this->functionDescriptionParsers[ODataConstants::STRFUN_ENDSWITH] = function ($params) { |
| 60 | 60 | return '(strcmp(substr(' . $params[0] . ', strlen(' . $params[0] . ') - strlen(' . $params[1] . ')), ' |
| 61 | - . $params[1] . ') === 0)'; |
|
| 61 | + . $params[1] . ') === 0)'; |
|
| 62 | 62 | }; |
| 63 | 63 | $this->functionDescriptionParsers[ODataConstants::STRFUN_INDEXOF] = function ($params) { |
| 64 | 64 | return 'strpos(' . $params[0] . ', ' . $params[1] . ')'; |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $kVal = $typeKind; |
| 72 | 72 | if (!(ResourceTypeKind::PRIMITIVE() == $kVal || ResourceTypeKind::COMPLEX() == $kVal)) { |
| 73 | 73 | $msg = '$bagItemResourceTypeKind != ResourceTypeKind::PRIMITIVE' |
| 74 | - . ' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
| 74 | + . ' && $bagItemResourceTypeKind != ResourceTypeKind::COMPLEX'; |
|
| 75 | 75 | throw new InvalidOperationException($msg); |
| 76 | 76 | } |
| 77 | 77 | if (null == $result) { |