@@ -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 | } |
@@ -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 | /** |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | */ |
| 93 | 93 | public static function httpProcessUtilityClosingQuoteNotFound($parameterName) |
| 94 | 94 | { |
| 95 | - return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because the closing quote '. |
|
| 95 | + return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because the closing quote ' . |
|
| 96 | 96 | 'character could not be found while the parameter value started with a quote character.'; |
| 97 | 97 | } |
| 98 | 98 | |
@@ -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 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $resourcePropertyKindArgName, |
| 30 | 30 | $resourceTypeArgName |
| 31 | 31 | ) { |
| 32 | - return 'The \''.$resourcePropertyKindArgName.'\' parameter does not match with the type of the resource' |
|
| 33 | - .' type in parameter \''.$resourceTypeArgName.'\''; |
|
| 32 | + return 'The \'' . $resourcePropertyKindArgName . '\' parameter does not match with the type of the resource' |
|
| 33 | + .' type in parameter \'' . $resourceTypeArgName . '\''; |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -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 | /** |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $requestedVersion, |
| 65 | 65 | $availableVersions |
| 66 | 66 | ) { |
| 67 | - return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not' |
|
| 68 | - .' supported, available versions are '.$availableVersions; |
|
| 67 | + return 'The version value ' . $requestedVersion . ' in the header ' . $requestHeaderName . ' is not' |
|
| 68 | + .' supported, available versions are ' . $availableVersions; |
|
| 69 | 69 | } |
| 70 | 70 | } |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | ); |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - $builtServiceUri = $requestUriScheme .'://' . $this->getAbsoluteRequestUri()->getHost(); |
|
| 225 | + $builtServiceUri = $requestUriScheme . '://' . $this->getAbsoluteRequestUri()->getHost(); |
|
| 226 | 226 | |
| 227 | 227 | if (($requestUriScheme == 'http' && $requestUriPort != '80') || |
| 228 | 228 | ($requestUriScheme == 'https' && $requestUriPort != '443') |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | $this->getOperationContext()->outgoingResponse()->setContentLength($value); |
| 512 | 512 | } else { |
| 513 | 513 | throw ODataException::notAcceptableError( |
| 514 | - 'ContentLength: '.$value.' is invalid' |
|
| 514 | + 'ContentLength: ' . $value . ' is invalid' |
|
| 515 | 515 | ); |
| 516 | 516 | } |
| 517 | 517 | } |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | public function setResponseStatusCode($value) |
| 557 | 557 | { |
| 558 | 558 | if (!is_numeric($value)) { |
| 559 | - $msg = 'Invalid, non-numeric, status code: '.$value; |
|
| 559 | + $msg = 'Invalid, non-numeric, status code: ' . $value; |
|
| 560 | 560 | throw ODataException::createInternalServerError($msg); |
| 561 | 561 | } |
| 562 | 562 | $floor = floor($value/100); |
@@ -76,6 +76,6 @@ |
||
| 76 | 76 | $this->eTag = $eTag; |
| 77 | 77 | $this->name = $name; |
| 78 | 78 | $this->srcLink = $srcLink; |
| 79 | - $this->rel = (null !== $rel) ? $rel : self::MEDIARESOURCE_BASE.$name; |
|
| 79 | + $this->rel = (null !== $rel) ? $rel : self::MEDIARESOURCE_BASE . $name; |
|
| 80 | 80 | } |
| 81 | 81 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | $payloadType = $payload->type->term; |
| 36 | 36 | $pay = explode('.', $payloadType); |
| 37 | - $payloadType = $pay[count($pay)-1]; |
|
| 37 | + $payloadType = $pay[count($pay) - 1]; |
|
| 38 | 38 | $actualType = $entityType->getName(); |
| 39 | 39 | |
| 40 | 40 | if ($payloadType !== $actualType) { |
@@ -640,7 +640,7 @@ |
||
| 640 | 640 | ResourceEntityType $concreteType = null |
| 641 | 641 | ) { |
| 642 | 642 | $allowedMult = ['*', '1', '0..1']; |
| 643 | - $backMultArray = [ '*' => '*', '1' => '0..1', '0..1' => '1']; |
|
| 643 | + $backMultArray = ['*' => '*', '1' => '0..1', '0..1' => '1']; |
|
| 644 | 644 | $this->checkInstanceProperty($name, $sourceResourceType); |
| 645 | 645 | |
| 646 | 646 | // check that property and resource name don't up and collide - would violate OData spec |