Passed
Pull Request — master (#121)
by Alex
03:55
created
src/POData/Common/Messages/navigation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public static function urlMalformedUrl($url)
35 35
     {
36
-        return 'Bad Request - The url \''.$url.'\' is malformed.';
36
+        return 'Bad Request - The url \'' . $url . '\' is malformed.';
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/orderByInfo.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function orderByParserPropertyNotFound($resourceTypeName, $propertyName)
51 51
     {
52
-        return 'Error in the \'orderby\' clause. Type '.$resourceTypeName.' does not have a property named \''.$propertyName.'\'.';
52
+        return 'Error in the \'orderby\' clause. Type ' . $resourceTypeName . ' does not have a property named \'' . $propertyName . '\'.';
53 53
     }
54 54
 
55 55
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public static function orderByParserBagPropertyNotAllowed($bagPropertyName)
64 64
     {
65
-        return 'orderby clause does not support Bag property in the path, the property \''.$bagPropertyName
65
+        return 'orderby clause does not support Bag property in the path, the property \'' . $bagPropertyName
66 66
                .'\' is a bag property';
67 67
     }
68 68
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public static function orderByParserPrimitiveAsIntermediateSegment($propertyName)
78 78
     {
79
-        return 'The primitive property \''.$propertyName.'\' cannnot be used as intermediate segment, it should'
79
+        return 'The primitive property \'' . $propertyName . '\' cannnot be used as intermediate segment, it should'
80 80
                .' be last segment';
81 81
     }
82 82
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public static function orderByParserSortByBinaryPropertyNotAllowed($binaryPropertyName)
91 91
     {
92
-        return 'Binary property is not allowed in orderby clause, \''.$binaryPropertyName.'\'';
92
+        return 'Binary property is not allowed in orderby clause, \'' . $binaryPropertyName . '\'';
93 93
     }
94 94
 
95 95
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public static function orderByParserResourceSetReferenceNotAllowed($propertyName, $definedType)
105 105
     {
106 106
         return 'Navigation property points to a collection cannot be used in orderby clause, The property \''
107
-               .$propertyName.'\' defined on type \''.$definedType.'\' is such a property';
107
+               .$propertyName . '\' defined on type \'' . $definedType . '\' is such a property';
108 108
     }
109 109
 
110 110
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public static function orderByParserSortByNavigationPropertyIsNotAllowed($navigationPropertyName)
119 119
     {
120
-        return 'Navigation property cannot be used as sort key, \''.$navigationPropertyName.'\'';
120
+        return 'Navigation property cannot be used as sort key, \'' . $navigationPropertyName . '\'';
121 121
     }
122 122
 
123 123
     /**
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public static function orderByParserSortByComplexPropertyIsNotAllowed($complexPropertyName)
132 132
     {
133
-        return 'Complex property cannot be used as sort key, the property \''.$complexPropertyName
133
+        return 'Complex property cannot be used as sort key, the property \'' . $complexPropertyName
134 134
                .'\' is a complex property';
135 135
     }
136 136
 
@@ -177,6 +177,6 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public static function orderByParserFailedToAccessOrInitializeProperty($propertyName, $parentObjectName)
179 179
     {
180
-        return 'OrderBy parser failed to access or initialize the property '.$propertyName.' of '.$parentObjectName;
180
+        return 'OrderBy parser failed to access or initialize the property ' . $propertyName . ' of ' . $parentObjectName;
181 181
     }
182 182
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function configurationResourceSetNameNotFound($name)
28 28
     {
29
-        return 'The given name \''.$name.'\' was not found in the entity sets';
29
+        return 'The given name \'' . $name . '\' was not found in the entity sets';
30 30
     }
31 31
 
32 32
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function configurationRightsAreNotInRange($argument, $functionName)
42 42
     {
43
-        return 'The argument \''.$argument.'\' of \''.$functionName.'\' should be EntitySetRights enum value';
43
+        return 'The argument \'' . $argument . '\' of \'' . $functionName . '\' should be EntitySetRights enum value';
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/expandProjectionParser.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/keyDescriptor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceAssociationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/httpProcessUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.