@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | { |
33 | 33 | $clause = $isSelect ? 'select' : 'expand'; |
34 | 34 | |
35 | - return 'Error in the '.$clause.' clause. Type \''.$resourceTypeName.'\' does not have a property named \'' |
|
36 | - .$propertyName.'\'.'; |
|
35 | + return 'Error in the ' . $clause . ' clause. Type \'' . $resourceTypeName . '\' does not have a property named \'' |
|
36 | + .$propertyName . '\'.'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function expandProjectionParserExpandCanOnlyAppliedToEntity($resourceTypeName, $propertyName) |
49 | 49 | { |
50 | - return 'Error in the expand clause. Expand path can contain only navigation property, the property '. |
|
51 | - '\''.$propertyName.'\' defined in \''.$resourceTypeName.'\' is not a navigation property'; |
|
50 | + return 'Error in the expand clause. Expand path can contain only navigation property, the property ' . |
|
51 | + '\'' . $propertyName . '\' defined in \'' . $resourceTypeName . '\' is not a navigation property'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public static function expandProjectionParserPrimitivePropertyUsedAsNavigationProperty($resourceTypeName, $primitvePropertyName) |
66 | 66 | { |
67 | - return 'Property \''.$primitvePropertyName.'\' on type \''.$resourceTypeName |
|
67 | + return 'Property \'' . $primitvePropertyName . '\' on type \'' . $resourceTypeName |
|
68 | 68 | .'\' is of primitive type and cannot be used as a navigation property.'; |
69 | 69 | } |
70 | 70 | |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public static function expandProjectionParserComplexPropertyAsInnerSelectSegment($resourceTypeName, $complextTypeName) |
82 | 82 | { |
83 | - return 'select doesn\'t support selection of properties of complex type. The property \''.$complextTypeName |
|
84 | - .'\' on type \''.$resourceTypeName.'\' is a complex type.'; |
|
83 | + return 'select doesn\'t support selection of properties of complex type. The property \'' . $complextTypeName |
|
84 | + .'\' on type \'' . $resourceTypeName . '\' is a complex type.'; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public static function expandProjectionParserBagPropertyAsInnerSelectSegment($resourceTypeName, $bagPropertyName) |
98 | 98 | { |
99 | - return 'The selection from property \''.$bagPropertyName.'\' on type \''.$resourceTypeName |
|
99 | + return 'The selection from property \'' . $bagPropertyName . '\' on type \'' . $resourceTypeName |
|
100 | 100 | .'\' is not valid. The select query option does not support selection items from a bag property.'; |
101 | 101 | } |
102 | 102 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public static function keyDescriptorKeyCountNotMatching($segment, $expectedCount, $actualCount) |
18 | 18 | { |
19 | - return 'The predicate in the segment \''.$segment.'\' expect '.$expectedCount.' keys but '.$actualCount |
|
19 | + return 'The predicate in the segment \'' . $segment . '\' expect ' . $expectedCount . ' keys but ' . $actualCount |
|
20 | 20 | .' provided'; |
21 | 21 | } |
22 | 22 | |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public static function keyDescriptorMissingKeys($segment, $expectedKeys) |
33 | 33 | { |
34 | - return 'Missing keys in key predicate for the segment \''.$segment.'\'. The key predicate expects the keys \'' |
|
35 | - .$expectedKeys.'\''; |
|
34 | + return 'Missing keys in key predicate for the segment \'' . $segment . '\'. The key predicate expects the keys \'' |
|
35 | + .$expectedKeys . '\''; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function keyDescriptorInCompatibleKeyType($segment, $keyProperty, $expectedType, $actualType) |
50 | 50 | { |
51 | - return 'Syntax error in the segment \''.$segment.'\'. The value of key property \''.$keyProperty |
|
51 | + return 'Syntax error in the segment \'' . $segment . '\'. The value of key property \'' . $keyProperty |
|
52 | 52 | .'\' should be of type ' . $expectedType . ', given ' . $actualType; |
53 | 53 | } |
54 | 54 | |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public static function keyDescriptorInCompatibleKeyTypeAtPosition($segment, $keyProperty, $position, $expectedType, $actualType) |
68 | 68 | { |
69 | - return 'Syntax error in the segment \''.$segment.'\'. The value of key property \''.$keyProperty |
|
70 | - .'\' at position '.$position.' should be of type ' . $expectedType . ', given ' . $actualType; |
|
69 | + return 'Syntax error in the segment \'' . $segment . '\'. The value of key property \'' . $keyProperty |
|
70 | + .'\' at position ' . $position . ' should be of type ' . $expectedType . ', given ' . $actualType; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public static function resourceAssociationTypeEndPropertyMustBeNullOrInstanceofResourceProperty($argumentName) |
16 | 16 | { |
17 | - return 'The argument \''.$argumentName.'\' must be either null or instance of \'ResourceProperty\'.'; |
|
17 | + return 'The argument \'' . $argumentName . '\' must be either null or instance of \'ResourceProperty\'.'; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public static function resourceTypeTypeShouldImplementIType($argument) |
38 | 38 | { |
39 | - return 'For primitive type the \''.$argument.'\' argument should be an \'IType\' instance'; |
|
39 | + return 'For primitive type the \'' . $argument . '\' argument should be an \'IType\' instance'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public static function resourceTypeTypeShouldReflectionClass($argument) |
51 | 51 | { |
52 | - return 'For entity type the \''.$argument.'\' argument should be a \'ReflectionClass\' instance'; |
|
52 | + return 'For entity type the \'' . $argument . '\' argument should be a \'ReflectionClass\' instance'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function resourceTypeMissingKeyPropertiesForEntity($entityName) |
63 | 63 | { |
64 | - return 'The entity type \''.$entityName.'\' does not have any key properties. Please make sure the key' |
|
64 | + return 'The entity type \'' . $entityName . '\' does not have any key properties. Please make sure the key' |
|
65 | 65 | .' properties are defined for this entity type'; |
66 | 66 | } |
67 | 67 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public static function resourceTypePropertyWithSameNameAlreadyExists($propertyName, $resourceTypeName) |
113 | 113 | { |
114 | - return 'Property with same name \''.$propertyName.'\' already exists in type \''.$resourceTypeName |
|
114 | + return 'Property with same name \'' . $propertyName . '\' already exists in type \'' . $resourceTypeName |
|
115 | 115 | .'\'. Please make sure that there is no property with the same name defined in one of the' |
116 | 116 | .' ancestor types'; |
117 | 117 | } |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public static function resourceTypeNamedStreamWithSameNameAlreadyExists($namedStreamName, $resourceTypeName) |
159 | 159 | { |
160 | - return 'Named stream with the name \''.$namedStreamName.'\' already exists in type \''.$resourceTypeName |
|
160 | + return 'Named stream with the name \'' . $namedStreamName . '\' already exists in type \'' . $resourceTypeName |
|
161 | 161 | .'\'. Please make sure that there is no named stream with the same name defined in one of the' |
162 | 162 | .' ancestor types'; |
163 | 163 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public static function httpProcessUtilityEscapeCharWithoutQuotes($parameterName) |
66 | 66 | { |
67 | - return 'Value for MIME type parameter \''.$parameterName.'\' is incorrect because it contained escape'. |
|
67 | + return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because it contained escape' . |
|
68 | 68 | ' characters even though it was not quoted.'; |
69 | 69 | } |
70 | 70 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public static function httpProcessUtilityEscapeCharAtEnd($parameterName) |
80 | 80 | { |
81 | - return 'Value for MIME type parameter \''.$parameterName.'\' is incorrect because it terminated with escape' |
|
81 | + return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because it terminated with escape' |
|
82 | 82 | .' character. Escape characters must always be followed by a character in a parameter value.'; |
83 | 83 | } |
84 | 84 | |
@@ -92,7 +92,7 @@ discard block |
||
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 character' |
|
95 | + return 'Value for MIME type parameter \'' . $parameterName . '\' is incorrect because the closing quote character' |
|
96 | 96 | .' could not be found while the parameter value started with a quote character.'; |
97 | 97 | } |
98 | 98 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | public static function hostMalFormedBaseUriInConfig($notEndWithSvcOrHasQuery = false) |
17 | 17 | { |
18 | 18 | if ($notEndWithSvcOrHasQuery) { |
19 | - return 'Malformed base service uri in the configuration file (should end with .svc, there should not'. |
|
19 | + return 'Malformed base service uri in the configuration file (should end with .svc, there should not' . |
|
20 | 20 | ' be query or fragment in the base service uri)'; |
21 | 21 | } |
22 | 22 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | public static function onlyReadSupport(HTTPRequestMethod $method) |
49 | 49 | { |
50 | 50 | // TODO: Update to reflect expanded library capabilities? |
51 | - return 'This release of library supports only GET (read) request, received a request with method '. $method; |
|
51 | + return 'This release of library supports only GET (read) request, received a request with method ' . $method; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public static function badRequestInvalidUriForThisVerb($uri, $verb) |
63 | 63 | { |
64 | - return 'The URI \''.$uri.'\' is not valid for '.$verb.' method.'; |
|
64 | + return 'The URI \'' . $uri . '\' is not valid for ' . $verb . ' method.'; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | public static function noDataForThisVerb($verb) |
75 | 75 | { |
76 | - return 'Method '.$verb.' expecting some data, but received empty data.'; |
|
76 | + return 'Method ' . $verb . ' expecting some data, but received empty data.'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public static function badRequestInvalidUriForMediaResource($uri) |
88 | 88 | { |
89 | - return 'The URI \''.$uri.'\' is not valid. The segment before \'$value\' must be a Media Link Entry or' |
|
89 | + return 'The URI \'' . $uri . '\' is not valid. The segment before \'$value\' must be a Media Link Entry or' |
|
90 | 90 | .' a primitive property.'; |
91 | 91 | } |
92 | 92 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public static function hostNonODataOptionBeginsWithSystemCharacter($optionName) |
102 | 102 | { |
103 | - return 'The query parameter \''.$optionName.'\' begins with a system-reserved \'$\' character but' |
|
103 | + return 'The query parameter \'' . $optionName . '\' begins with a system-reserved \'$\' character but' |
|
104 | 104 | .' is not recognized.'; |
105 | 105 | } |
106 | 106 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public static function hostODataQueryOptionFoundWithoutValue($optionName) |
116 | 116 | { |
117 | - return 'Query parameter \''.$optionName.'\' is specified, but it should be specified with value.'; |
|
117 | + return 'Query parameter \'' . $optionName . '\' is specified, but it should be specified with value.'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public static function hostODataQueryOptionCannotBeSpecifiedMoreThanOnce($optionName) |
129 | 129 | { |
130 | - return 'Query parameter \''.$optionName.'\' is specified, but it should be specified exactly once.'; |
|
130 | + return 'Query parameter \'' . $optionName . '\' is specified, but it should be specified exactly once.'; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
@@ -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 | /** |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public static function commonArgumentShouldBeInteger($argument, $functionName) |
17 | 17 | { |
18 | - return 'The argument to the function '.$functionName.' should be integer, non-integer value \'' |
|
19 | - .$argument.'\' passed'; |
|
18 | + return 'The argument to the function ' . $functionName . ' should be integer, non-integer value \'' |
|
19 | + .$argument . '\' passed'; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function commonArgumentShouldBeNonNegative($argument, $functionName) |
32 | 32 | { |
33 | - return 'The argument to the function '.$functionName.' should be non-negative, negative value \'' |
|
34 | - .$argument.'\' passed'; |
|
33 | + return 'The argument to the function ' . $functionName . ' should be non-negative, negative value \'' |
|
34 | + .$argument . '\' passed'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public static function commonNotValidPrimitiveEDMType($argumentName, $functionName) |
47 | 47 | { |
48 | - return 'The argument \''.$argumentName.'\' to '.$functionName.' is not a valid EdmPrimitiveType Enum value.'; |
|
48 | + return 'The argument \'' . $argumentName . '\' to ' . $functionName . ' is not a valid EdmPrimitiveType Enum value.'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public static function failedToAccessProperty($propertyName, $parentObjectName) |
72 | 72 | { |
73 | - return 'Data Service failed to access or initialize the property '.$propertyName.' of '.$parentObjectName.'.'; |
|
73 | + return 'Data Service failed to access or initialize the property ' . $propertyName . ' of ' . $parentObjectName . '.'; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public static function badRequestInvalidPropertyNameSpecified($resourceTypeName, $propertyName) |
95 | 95 | { |
96 | - return 'Error processing request stream. The property name '.$propertyName.' specified for type ' |
|
97 | - .$resourceTypeName.' is not valid. (Check the resource set of the navigation property \'' |
|
98 | - .$propertyName.'\' is visible)'; |
|
96 | + return 'Error processing request stream. The property name ' . $propertyName . ' specified for type ' |
|
97 | + .$resourceTypeName . ' is not valid. (Check the resource set of the navigation property \'' |
|
98 | + .$propertyName . '\' is visible)'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public static function expressionLexerInvalidCharacter($ch, $pos) |
53 | 53 | { |
54 | - return 'Invalid character \''.$ch.'\' at position '.$pos; |
|
54 | + return 'Invalid character \'' . $ch . '\' at position ' . $pos; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | $protoTypes, |
69 | 69 | $position |
70 | 70 | ) { |
71 | - return 'No applicable function found for \''.$functionName.'\' at position '.$position.' with the specified' |
|
72 | - .' arguments. The functions considered are: '.$protoTypes; |
|
71 | + return 'No applicable function found for \'' . $functionName . '\' at position ' . $position . ' with the specified' |
|
72 | + .' arguments. The functions considered are: ' . $protoTypes; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -83,6 +83,6 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public static function expressionLexerNoPropertyInType($property, $type, $position) |
85 | 85 | { |
86 | - return 'No property \''.$property.'\' exists in type \''.$type.'\' at position '.$position; |
|
86 | + return 'No property \'' . $property . '\' exists in type \'' . $type . '\' at position ' . $position; |
|
87 | 87 | } |
88 | 88 | } |