@@ -60,7 +60,7 @@ |
||
| 60 | 60 | * @throws InvalidOperationException |
| 61 | 61 | * @return bool true if the segment was push, false otherwise |
| 62 | 62 | */ |
| 63 | - public function pushSegment(string $segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 63 | + public function pushSegment(string $segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 64 | 64 | { |
| 65 | 65 | $rootProjectionNode = $this->getRequest()->getRootProjectionNode(); |
| 66 | 66 | if (null !== $rootProjectionNode && $rootProjectionNode->isExpansionSpecified()) { |
@@ -45,8 +45,8 @@ |
||
| 45 | 45 | * @return InternalSkipTokenInfo |
| 46 | 46 | */ |
| 47 | 47 | public static function parseSkipTokenClause( |
| 48 | - ResourceType &$resourceType, |
|
| 49 | - InternalOrderByInfo &$internalOrderByInfo, |
|
| 48 | + ResourceType & $resourceType, |
|
| 49 | + InternalOrderByInfo & $internalOrderByInfo, |
|
| 50 | 50 | string $skipToken |
| 51 | 51 | ): InternalSkipTokenInfo { |
| 52 | 52 | /** @var KeyDescriptor|null $tokenValueDescriptor */ |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | * @param ResourceType &$resourceType Reference to the resource type pointed to by the request uri |
| 73 | 73 | */ |
| 74 | 74 | public function __construct( |
| 75 | - InternalOrderByInfo &$internalOrderByInfo, |
|
| 75 | + InternalOrderByInfo & $internalOrderByInfo, |
|
| 76 | 76 | array $orderByValuesInSkipToken, |
| 77 | - ResourceType &$resourceType |
|
| 77 | + ResourceType & $resourceType |
|
| 78 | 78 | ) { |
| 79 | 79 | $this->internalOrderByInfo = $internalOrderByInfo; |
| 80 | 80 | $this->orderByValuesInSkipToken = $orderByValuesInSkipToken; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $searchArraySize = count($searchArray) - 1; |
| 142 | 142 | $high = $searchArraySize; |
| 143 | 143 | do { |
| 144 | - $mid = intval($low + round(($high - $low) / 2)); |
|
| 144 | + $mid = intval($low + round(($high - $low)/2)); |
|
| 145 | 145 | $result = $comparer($keyObject, $searchArray[$mid]); |
| 146 | 146 | if ($result > 0) { |
| 147 | 147 | $low = $mid + 1; |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * @param array<array<IType>> $orderByValuesInSkipToken Collection of values in the skiptoken corresponds |
| 40 | 40 | * to the orderby path segments |
| 41 | 41 | */ |
| 42 | - public function __construct(OrderByInfo &$orderByInfo, array $orderByValuesInSkipToken) |
|
| 42 | + public function __construct(OrderByInfo & $orderByInfo, array $orderByValuesInSkipToken) |
|
| 43 | 43 | { |
| 44 | 44 | $this->orderByInfo = $orderByInfo; |
| 45 | 45 | $this->orderByValuesInSkipToken = $orderByValuesInSkipToken; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @throws InvalidOperationException |
| 125 | 125 | * @return bool true if the segment was push, false otherwise |
| 126 | 126 | */ |
| 127 | - private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 127 | + private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 128 | 128 | { |
| 129 | 129 | return $this->getStack()->pushSegment($segmentName, $resourceSetWrapper); |
| 130 | 130 | } |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * @throws InvalidOperationException If this function invoked with non-navigation property instance |
| 356 | 356 | * @return bool true if a segment was pushed, false otherwise |
| 357 | 357 | */ |
| 358 | - private function pushSegmentForNavigationProperty(ResourceProperty &$resourceProperty) |
|
| 358 | + private function pushSegmentForNavigationProperty(ResourceProperty & $resourceProperty) |
|
| 359 | 359 | { |
| 360 | 360 | if ($resourceProperty->getTypeKind() == ResourceTypeKind::ENTITY()) { |
| 361 | 361 | if (empty($this->getStack()->getSegmentNames())) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public static function tryParseKeysFromKeyPredicate( |
| 140 | 140 | string $keyPredicate, |
| 141 | - KeyDescriptor &$keyDescriptor = null |
|
| 141 | + KeyDescriptor & $keyDescriptor = null |
|
| 142 | 142 | ): bool { |
| 143 | 143 | $isKey = true; |
| 144 | 144 | $keyString = $keyPredicate; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | protected static function parseAndVerifyRawKeyPredicate( |
| 156 | 156 | string $keyString, |
| 157 | 157 | bool $isKey, |
| 158 | - KeyDescriptor &$keyDescriptor = null |
|
| 158 | + KeyDescriptor & $keyDescriptor = null |
|
| 159 | 159 | ): bool { |
| 160 | 160 | $result = self::tryParseKeysFromRawKeyPredicate( |
| 161 | 161 | $keyString, |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | string $keyPredicate, |
| 192 | 192 | bool $allowNamedValues, |
| 193 | 193 | bool $allowNull, |
| 194 | - ?KeyDescriptor &$keyDescriptor |
|
| 194 | + ?KeyDescriptor & $keyDescriptor |
|
| 195 | 195 | ): bool { |
| 196 | 196 | $expressionLexer = new ExpressionLexer($keyPredicate); |
| 197 | 197 | $currentToken = $expressionLexer->getCurrentToken(); |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | string $value, |
| 303 | 303 | ExpressionTokenId $tokenId, |
| 304 | 304 | &$outValue, |
| 305 | - IType &$outType = null |
|
| 305 | + IType & $outType = null |
|
| 306 | 306 | ): bool { |
| 307 | 307 | switch ($tokenId) { |
| 308 | 308 | case ExpressionTokenId::BOOLEAN_LITERAL(): |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | * @throws ODataException |
| 362 | 362 | * @return bool True if the given values were parsed; false if there was a syntax error |
| 363 | 363 | */ |
| 364 | - public static function tryParseValuesFromSkipToken(string $skipToken, ?KeyDescriptor &$keyDescriptor): bool |
|
| 364 | + public static function tryParseValuesFromSkipToken(string $skipToken, ?KeyDescriptor & $keyDescriptor): bool |
|
| 365 | 365 | { |
| 366 | 366 | $isKey = false; |
| 367 | 367 | $keyString = $skipToken; |
@@ -590,12 +590,12 @@ discard block |
||
| 590 | 590 | foreach ($values as $propName => $propDeets) { |
| 591 | 591 | assert(2 == count($propDeets)); |
| 592 | 592 | assert($propDeets[1] instanceof IType); |
| 593 | - $property = new ODataProperty( |
|
| 593 | + $property = new ODataProperty( |
|
| 594 | 594 | strval($propName), |
| 595 | 595 | $propDeets[1]->getFullTypeName(), |
| 596 | 596 | $propDeets[1]->convert($propDeets[0]) |
| 597 | 597 | ); |
| 598 | - $result[$propName] = $property; |
|
| 598 | + $result[$propName] = $property; |
|
| 599 | 599 | } |
| 600 | 600 | |
| 601 | 601 | return $result; |
@@ -645,7 +645,7 @@ discard block |
||
| 645 | 645 | MimeTypes::MIME_APPLICATION_JSON_FULL_META, |
| 646 | 646 | MimeTypes::MIME_APPLICATION_JSON_NO_META, |
| 647 | 647 | MimeTypes::MIME_APPLICATION_JSON_MINIMAL_META, |
| 648 | - MimeTypes::MIME_APPLICATION_JSON_VERBOSE,]; |
|
| 648 | + MimeTypes::MIME_APPLICATION_JSON_VERBOSE, ]; |
|
| 649 | 649 | |
| 650 | 650 | // The Accept request-header field specifies media types which are acceptable for the response |
| 651 | 651 | |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | $requestAcceptText, |
| 717 | 717 | array_merge( |
| 718 | 718 | [MimeTypes::MIME_APPLICATION_XML, |
| 719 | - MimeTypes::MIME_TEXTXML,], |
|
| 719 | + MimeTypes::MIME_TEXTXML, ], |
|
| 720 | 720 | $baseMimeTypes |
| 721 | 721 | ) |
| 722 | 722 | ); |
@@ -811,7 +811,7 @@ discard block |
||
| 811 | 811 | */ |
| 812 | 812 | protected function compareETag( |
| 813 | 813 | &$entryObject, |
| 814 | - ResourceType &$resourceType, |
|
| 814 | + ResourceType & $resourceType, |
|
| 815 | 815 | &$needToSerializeResponse |
| 816 | 816 | ): ?string { |
| 817 | 817 | $needToSerializeResponse = true; |
@@ -907,7 +907,7 @@ discard block |
||
| 907 | 907 | * for use in a URI) there are etag properties, NULL if |
| 908 | 908 | * there is no etag property |
| 909 | 909 | */ |
| 910 | - protected function getETagForEntry(&$entryObject, ResourceType &$resourceType): ?string |
|
| 910 | + protected function getETagForEntry(&$entryObject, ResourceType & $resourceType): ?string |
|
| 911 | 911 | { |
| 912 | 912 | $eTag = null; |
| 913 | 913 | $comma = null; |