Completed
Pull Request — master (#127)
by Christopher
09:45
created
src/POData/Common/Messages/http.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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/metadataResourceType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName)
17 17
     {
18
-        return 'Named streams are not supported on derived entity types. Entity Set \''.$entitySetName
19
-                .'\' has an instance of type \''.$derivedTypeName.'\', which is a derived entity type and has'
20
-                .' named streams. Please remove all named streams from type \''.$derivedTypeName.'\'.';
18
+        return 'Named streams are not supported on derived entity types. Entity Set \'' . $entitySetName
19
+                .'\' has an instance of type \'' . $derivedTypeName . '\', which is a derived entity type and has'
20
+                .' named streams. Please remove all named streams from type \'' . $derivedTypeName . '\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName)
33 33
     {
34
-        return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.'
34
+        return 'Complex type \'' . $complexTypeName . '\' has derived types and is used as the item type in a bag.'
35 35
                 .' Only bags containing complex types without derived types are supported.';
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionLexer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
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
     /**
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.
src/POData/Common/Messages/orderByInfo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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
 
@@ -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
     /**
@@ -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
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/providersWrapper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function providersWrapperEntitySetNameShouldBeUnique($entitySetName)
73 73
     {
74
-        return 'More than one entity set with the name \''.$entitySetName
74
+        return 'More than one entity set with the name \'' . $entitySetName
75 75
                 .'\' was found. Entity set names must be unique';
76 76
     }
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public static function providersWrapperEntityTypeNameShouldBeUnique($entityTypeName)
87 87
     {
88
-        return 'More than one entity type with the name \''.$entityTypeName
88
+        return 'More than one entity type with the name \'' . $entityTypeName
89 89
                 .'\' was found. Entity type names must be unique';
90 90
     }
91 91
 
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public static function providersWrapperIDSMPGetResourceSetReturnsInvalidResourceSet($resourceSetName, $resourceTypeName, $resourcePropertyName)
103 103
     {
104
-        return 'IDSMP::GetResourceSet retruns invalid instance of ResourceSet when invoked with params'.
105
-                ' {ResourceSet with name '.$resourceSetName.', ResourceType with name '.$resourceTypeName
106
-                .', ResourceProperty with name '.$resourcePropertyName.'}.';
104
+        return 'IDSMP::GetResourceSet retruns invalid instance of ResourceSet when invoked with params' .
105
+                ' {ResourceSet with name ' . $resourceSetName . ', ResourceType with name ' . $resourceTypeName
106
+                .', ResourceProperty with name ' . $resourcePropertyName . '}.';
107 107
     }
108 108
 
109 109
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/skipTokenInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public static function skipTokenInfoBothOrderByPathAndOrderByValuesShouldBeSetOrNotSet($orderByPathsVarName, $orderByValuesVarName)
20 20
     {
21
-        return 'Either both the arguments '.$orderByPathsVarName.' and '.$orderByValuesVarName.' should be'
21
+        return 'Either both the arguments ' . $orderByPathsVarName . ' and ' . $orderByValuesVarName . ' should be'
22 22
                 .' null or not-null';
23 23
     }
24 24
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/common.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.