@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @return bool true if the segment was push, false otherwise |
| 52 | 52 | */ |
| 53 | - public function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 53 | + public function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 54 | 54 | { |
| 55 | 55 | if (!is_string($segmentName)) { |
| 56 | 56 | throw new InvalidOperationException('segmentName must be a string'); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * |
| 195 | 195 | * @return bool true if a segment was pushed, false otherwise |
| 196 | 196 | */ |
| 197 | - private function pushSegmentForNavigationProperty(ResourceProperty &$resourceProperty) |
|
| 197 | + private function pushSegmentForNavigationProperty(ResourceProperty & $resourceProperty) |
|
| 198 | 198 | { |
| 199 | 199 | if ($resourceProperty->getTypeKind() == ResourceTypeKind::ENTITY) { |
| 200 | 200 | assert(!empty($this->getStack()->getSegmentNames()), '!is_empty($this->getStack()->getSegmentNames())'); |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * |
| 280 | 280 | * @return bool true if the segment was push, false otherwise |
| 281 | 281 | */ |
| 282 | - private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 282 | + private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 283 | 283 | { |
| 284 | 284 | return $this->getStack()->pushSegment($segmentName, $resourceSetWrapper); |
| 285 | 285 | } |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | * @return InternalSkipTokenInfo |
| 42 | 42 | */ |
| 43 | 43 | public static function parseSkipTokenClause( |
| 44 | - ResourceType &$resourceType, |
|
| 45 | - InternalOrderByInfo &$internalOrderByInfo, |
|
| 44 | + ResourceType & $resourceType, |
|
| 45 | + InternalOrderByInfo & $internalOrderByInfo, |
|
| 46 | 46 | $skipToken |
| 47 | 47 | ) { |
| 48 | 48 | $tokenValueDescriptor = null; |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | */ |
| 204 | 204 | public static function tryParseKeysFromKeyPredicate( |
| 205 | 205 | $keyPredicate, |
| 206 | - KeyDescriptor &$keyDescriptor = null |
|
| 206 | + KeyDescriptor & $keyDescriptor = null |
|
| 207 | 207 | ) { |
| 208 | 208 | return self::tryParseKeysFromRawKeyPredicate( |
| 209 | 209 | $keyPredicate, |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public static function resourcePropertyInvalidKindParameter($argumentName) |
| 15 | 15 | { |
| 16 | 16 | return 'The argument \''.$argumentName.'\' is not a valid ResourcePropertyKind enum value or' |
| 17 | - .' valid combination of ResourcePropertyKind enum values'; |
|
| 17 | + .' valid combination of ResourcePropertyKind enum values'; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -28,6 +28,6 @@ discard block |
||
| 28 | 28 | public static function resourcePropertyPropertyKindAndResourceTypeKindMismatch($resourcePropertyKindArgName, $resourceTypeArgName) |
| 29 | 29 | { |
| 30 | 30 | return 'The \''.$resourcePropertyKindArgName.'\' parameter does not match with the type of the resource' |
| 31 | - .' type in parameter \''.$resourceTypeArgName.'\''; |
|
| 31 | + .' type in parameter \''.$resourceTypeArgName.'\''; |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public static function resourcePropertyInvalidKindParameter($argumentName) |
| 15 | 15 | { |
| 16 | - return 'The argument \''.$argumentName.'\' is not a valid ResourcePropertyKind enum value or' |
|
| 16 | + return 'The argument \'' . $argumentName . '\' is not a valid ResourcePropertyKind enum value or' |
|
| 17 | 17 | .' valid combination of ResourcePropertyKind enum values'; |
| 18 | 18 | } |
| 19 | 19 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public static function resourcePropertyPropertyKindAndResourceTypeKindMismatch($resourcePropertyKindArgName, $resourceTypeArgName) |
| 29 | 29 | { |
| 30 | - return 'The \''.$resourcePropertyKindArgName.'\' parameter does not match with the type of the resource' |
|
| 31 | - .' type in parameter \''.$resourceTypeArgName.'\''; |
|
| 30 | + return 'The \'' . $resourcePropertyKindArgName . '\' parameter does not match with the type of the resource' |
|
| 31 | + .' type in parameter \'' . $resourceTypeArgName . '\''; |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public static function queryProcessorNoQueryOptionsApplicable() |
| 26 | 26 | { |
| 27 | 27 | return 'Query options $select, $expand, $filter, $orderby, $inlinecount, $skip, $skiptoken and $top are not'. |
| 28 | - ' supported by this request method or cannot be applied to the requested resource.'; |
|
| 28 | + ' supported by this request method or cannot be applied to the requested resource.'; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | public static function queryProcessorSkipTokenCannotBeAppliedForNonPagedResourceSet($resourceSetName) |
| 124 | 124 | { |
| 125 | 125 | return '$skiptoken cannot be applied to the resource set \''.$resourceSetName |
| 126 | - .'\', since paging is not enabled for this resource set'; |
|
| 126 | + .'\', since paging is not enabled for this resource set'; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public static function queryProcessorNoQueryOptionsApplicable() |
| 26 | 26 | { |
| 27 | - return 'Query options $select, $expand, $filter, $orderby, $inlinecount, $skip, $skiptoken and $top are not'. |
|
| 27 | + return 'Query options $select, $expand, $filter, $orderby, $inlinecount, $skip, $skiptoken and $top are not' . |
|
| 28 | 28 | ' supported by this request method or cannot be applied to the requested resource.'; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public static function queryProcessorIncorrectArgumentFormat($argName, $argValue) |
| 110 | 110 | { |
| 111 | - return 'Incorrect format for '.$argName.' argument \''.$argValue.'\''; |
|
| 111 | + return 'Incorrect format for ' . $argName . ' argument \'' . $argValue . '\''; |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | /** |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public static function queryProcessorSkipTokenCannotBeAppliedForNonPagedResourceSet($resourceSetName) |
| 124 | 124 | { |
| 125 | - return '$skiptoken cannot be applied to the resource set \''.$resourceSetName |
|
| 125 | + return '$skiptoken cannot be applied to the resource set \'' . $resourceSetName |
|
| 126 | 126 | .'\', since paging is not enabled for this resource set'; |
| 127 | 127 | } |
| 128 | 128 | |
@@ -137,6 +137,6 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public static function queryProcessorSelectOrExpandOptionNotApplicable($queryItem) |
| 139 | 139 | { |
| 140 | - return 'Query option '.$queryItem.' cannot be applied to the requested resource'; |
|
| 140 | + return 'Query option ' . $queryItem . ' cannot be applied to the requested resource'; |
|
| 141 | 141 | } |
| 142 | 142 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | public static function resourceSetContainerMustBeAssociatedWithEntityType() |
| 14 | 14 | { |
| 15 | 15 | return 'The ResourceTypeKind property of a ResourceType instance associated with a ResourceSet' |
| 16 | - .' must be equal to \'EntityType\''; |
|
| 16 | + .' must be equal to \'EntityType\''; |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | public static function streamProviderWrapperMustImplementIStreamProviderToSupportStreaming() |
| 53 | 53 | { |
| 54 | 54 | return 'To support streaming, the data service must implement IService::getStreamProviderX() to return' |
| 55 | - .' an implementation of IStreamProvider or IStreamProvider2'; |
|
| 55 | + .' an implementation of IStreamProvider or IStreamProvider2'; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | public static function streamProviderWrapperMaxProtocolVersionMustBeV3OrAboveToSupportNamedStreams() |
| 64 | 64 | { |
| 65 | 65 | return 'To support named streams, the MaxProtocolVersion of the data service must be set to' |
| 66 | - .' ProtocolVersion.V3 or above.'; |
|
| 66 | + .' ProtocolVersion.V3 or above.'; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | public static function streamProviderWrapperMustImplementStreamProvider2ToSupportNamedStreams() |
| 76 | 76 | { |
| 77 | 77 | return 'To support named streams, the data service must implement IServiceProvider.GetService() to' |
| 78 | - .' return an implementation of IStreamProvider2 or the data source must implement IStreamProvider2.'; |
|
| 78 | + .' return an implementation of IStreamProvider2 or the data source must implement IStreamProvider2.'; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | */ |
| 88 | 88 | public static function streamProviderWrapperMustNotSetContentTypeAndEtag($methodName) |
| 89 | 89 | { |
| 90 | - return 'The method '.$methodName.' must not set the HTTP response headers \'Content-Type\' and \'ETag\''; |
|
| 90 | + return 'The method ' . $methodName . ' must not set the HTTP response headers \'Content-Type\' and \'ETag\''; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | public static function requestVersionTooLow($requestedVersion, $requiredVersion) |
| 18 | 18 | { |
| 19 | 19 | return 'Request version \''.$requestedVersion.'\' is not supported for the request payload. The only' |
| 20 | - .' supported version is \''.$requiredVersion.'\'.'; |
|
| 20 | + .' supported version is \''.$requiredVersion.'\'.'; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion) |
| 33 | 33 | { |
| 34 | 34 | return 'The response requires that version '.$requiredVersion.' of the protocol be used, but the' |
| 35 | - .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.'; |
|
| 35 | + .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.'; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -62,6 +62,6 @@ discard block |
||
| 62 | 62 | public static function requestDescriptionUnSupportedVersion($requestHeaderName, $requestedVersion, $availableVersions) |
| 63 | 63 | { |
| 64 | 64 | return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not' |
| 65 | - .' supported, available versions are '.$availableVersions; |
|
| 65 | + .' supported, available versions are '.$availableVersions; |
|
| 66 | 66 | } |
| 67 | 67 | } |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | */ |
| 17 | 17 | public static function requestVersionTooLow($requestedVersion, $requiredVersion) |
| 18 | 18 | { |
| 19 | - return 'Request version \''.$requestedVersion.'\' is not supported for the request payload. The only' |
|
| 20 | - .' supported version is \''.$requiredVersion.'\'.'; |
|
| 19 | + return 'Request version \'' . $requestedVersion . '\' is not supported for the request payload. The only' |
|
| 20 | + .' supported version is \'' . $requiredVersion . '\'.'; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -31,8 +31,8 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion) |
| 33 | 33 | { |
| 34 | - return 'The response requires that version '.$requiredVersion.' of the protocol be used, but the' |
|
| 35 | - .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.'; |
|
| 34 | + return 'The response requires that version ' . $requiredVersion . ' of the protocol be used, but the' |
|
| 35 | + .' MaxProtocolVersion of the data service is set to ' . $configuredVersion . '.'; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public static function requestDescriptionInvalidVersionHeader($versionAsString, $headerName) |
| 48 | 48 | { |
| 49 | - return 'The header '.$headerName.' has malformed version value '.$versionAsString; |
|
| 49 | + return 'The header ' . $headerName . ' has malformed version value ' . $versionAsString; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function requestDescriptionUnSupportedVersion($requestHeaderName, $requestedVersion, $availableVersions) |
| 63 | 63 | { |
| 64 | - return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not' |
|
| 65 | - .' supported, available versions are '.$availableVersions; |
|
| 64 | + return 'The version value ' . $requestedVersion . ' in the header ' . $requestHeaderName . ' is not' |
|
| 65 | + .' supported, available versions are ' . $availableVersions; |
|
| 66 | 66 | } |
| 67 | 67 | } |