Completed
Pull Request — master (#126)
by Christopher
03:36
created
src/POData/Common/Messages/queryProcessor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/configuration.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public static function configurationMaxResultAndPageSizeMutuallyExclusive()
14 14
     {
15 15
         return 'Specification of \'entity set page size\' is mutually exclusive with the specification '
16
-               .'of \'maximum result per collection\' in configuration';
16
+                .'of \'maximum result per collection\' in configuration';
17 17
     }
18 18
 
19 19
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public static function configurationCountNotAccepted()
53 53
     {
54 54
         return 'The ability of the data service to return row count information is disabled. To enable'
55
-               .' this functionality, set the ServiceConfiguration.AcceptCountRequests property to true.';
55
+                .' this functionality, set the ServiceConfiguration.AcceptCountRequests property to true.';
56 56
     }
57 57
 
58 58
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public static function configurationProjectionsNotAccepted()
65 65
     {
66 66
         return 'The ability to use the $select query option to define a projection in a data service query is'
67
-               .' disabled. To enable this functionality, call ServiceConfiguration::setAcceptProjectionRequests'
68
-               .' method with argument as true.';
67
+                .' disabled. To enable this functionality, call ServiceConfiguration::setAcceptProjectionRequests'
68
+                .' method with argument as true.';
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/expandProjectionParser.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public static function expandedProjectionNodeArgumentTypeShouldBeProjection()
14 14
     {
15 15
         return 'The argument to ExpandedProjectionNode::addNode should be either ProjectionNode or'
16
-               .' ExpandedProjectionNode';
16
+                .' ExpandedProjectionNode';
17 17
     }
18 18
 
19 19
     /**
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $clause = $isSelect ? 'select' : 'expand';
34 34
 
35 35
         return 'Error in the '.$clause.' clause. Type \''.$resourceTypeName.'\' does not have a property named \''
36
-               .$propertyName.'\'.';
36
+                .$propertyName.'\'.';
37 37
     }
38 38
 
39 39
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public static function expandProjectionParserExpandCanOnlyAppliedToEntity($resourceTypeName, $propertyName)
49 49
     {
50 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';
51
+                '\''.$propertyName.'\' defined in \''.$resourceTypeName.'\' is not a navigation property';
52 52
     }
53 53
 
54 54
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public static function expandProjectionParserPrimitivePropertyUsedAsNavigationProperty($resourceTypeName, $primitvePropertyName)
66 66
     {
67 67
         return 'Property \''.$primitvePropertyName.'\' on type \''.$resourceTypeName
68
-               .'\' is of primitive type and cannot be used as a navigation property.';
68
+                .'\' is of primitive type and cannot be used as a navigation property.';
69 69
     }
70 70
 
71 71
     /**
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     public static function expandProjectionParserComplexPropertyAsInnerSelectSegment($resourceTypeName, $complextTypeName)
82 82
     {
83 83
         return 'select doesn\'t support selection of properties of complex type. The property \''.$complextTypeName
84
-               .'\' on type \''.$resourceTypeName.'\' is a complex type.';
84
+                .'\' on type \''.$resourceTypeName.'\' is a complex type.';
85 85
     }
86 86
 
87 87
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public static function expandProjectionParserBagPropertyAsInnerSelectSegment($resourceTypeName, $bagPropertyName)
98 98
     {
99 99
         return 'The selection from property \''.$bagPropertyName.'\' on type \''.$resourceTypeName
100
-               .'\' is not valid. The select query option does not support selection items from a bag property.';
100
+                .'\' is not valid. The select query option does not support selection items from a bag property.';
101 101
     }
102 102
 
103 103
     /**
@@ -123,6 +123,6 @@  discard block
 block discarded – undo
123 123
     public static function expandProjectionParserPropertyWithoutMatchingExpand($propertyName)
124 124
     {
125 125
         return 'Only navigation properties specified in expand option can be traversed in select option.  In order to'
126
-               .' traverse the navigation property \'' . $propertyName . '\', it should be first expanded';
126
+                .' traverse the navigation property \'' . $propertyName . '\', it should be first expanded';
127 127
     }
128 128
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/keyDescriptor.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public static function keyDescriptorKeyCountNotMatching($segment, $expectedCount, $actualCount)
18 18
     {
19 19
         return 'The predicate in the segment \''.$segment.'\' expect '.$expectedCount.' keys but '.$actualCount
20
-               .' provided';
20
+                .' provided';
21 21
     }
22 22
 
23 23
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public static function keyDescriptorMissingKeys($segment, $expectedKeys)
33 33
     {
34 34
         return 'Missing keys in key predicate for the segment \''.$segment.'\'. The key predicate expects the keys \''
35
-               .$expectedKeys.'\'';
35
+                .$expectedKeys.'\'';
36 36
     }
37 37
 
38 38
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public static function keyDescriptorInCompatibleKeyType($segment, $keyProperty, $expectedType, $actualType)
50 50
     {
51 51
         return 'Syntax error in the segment \''.$segment.'\'. The value of key property \''.$keyProperty
52
-               .'\' should be of type ' . $expectedType . ', given ' . $actualType;
52
+                .'\' should be of type ' . $expectedType . ', given ' . $actualType;
53 53
     }
54 54
 
55 55
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public static function keyDescriptorInCompatibleKeyTypeAtPosition($segment, $keyProperty, $position, $expectedType, $actualType)
68 68
     {
69 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;
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/resourceType.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public static function resourceTypeMissingKeyPropertiesForEntity($entityName)
63 63
     {
64 64
         return 'The entity type \''.$entityName.'\' does not have any key properties. Please make sure the key'
65
-               .' properties are defined for this entity type';
65
+                .' properties are defined for this entity type';
66 66
     }
67 67
 
68 68
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public static function resourceTypeKeyPropertiesOnlyOnEntityTypes()
86 86
     {
87 87
         return 'Key properties can only be added to ResourceType instances with a ResourceTypeKind'
88
-               .' equal to \'EntityType\'';
88
+                .' equal to \'EntityType\'';
89 89
     }
90 90
 
91 91
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     public static function resourceTypeETagPropertiesOnlyOnEntityTypes()
98 98
     {
99 99
         return 'ETag properties can only be added to ResourceType instances with a ResourceTypeKind'
100
-               .' equal to \'EntityType\'';
100
+                .' equal to \'EntityType\'';
101 101
     }
102 102
 
103 103
     /**
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
     public static function resourceTypePropertyWithSameNameAlreadyExists($propertyName, $resourceTypeName)
113 113
     {
114 114
         return 'Property with same name \''.$propertyName.'\' already exists in type \''.$resourceTypeName
115
-               .'\'. Please make sure that there is no property with the same name defined in one of the'
116
-               .' ancestor types';
115
+                .'\'. Please make sure that there is no property with the same name defined in one of the'
116
+                .' ancestor types';
117 117
     }
118 118
 
119 119
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     public static function resourceTypeNamedStreamWithSameNameAlreadyExists($namedStreamName, $resourceTypeName)
159 159
     {
160 160
         return 'Named stream with the name \''.$namedStreamName.'\' already exists in type \''.$resourceTypeName
161
-               .'\'. Please make sure that there is no named stream with the same name defined in one of the'
162
-               .' ancestor types';
161
+                .'\'. Please make sure that there is no named stream with the same name defined in one of the'
162
+                .' ancestor types';
163 163
     }
164 164
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/httpProcessUtility.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public static function httpProcessUtilityEscapeCharWithoutQuotes($parameterName)
66 66
     {
67 67
         return 'Value for MIME type parameter \''.$parameterName.'\' is incorrect because it contained escape'.
68
-               ' characters even though it was not quoted.';
68
+                ' characters even though it was not quoted.';
69 69
     }
70 70
 
71 71
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public static function httpProcessUtilityEscapeCharAtEnd($parameterName)
80 80
     {
81 81
         return 'Value for MIME type parameter \''.$parameterName.'\' is incorrect because it terminated with escape'
82
-               .' character. Escape characters must always be followed by a character in a parameter value.';
82
+                .' character. Escape characters must always be followed by a character in a parameter value.';
83 83
     }
84 84
 
85 85
     /**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     public static function httpProcessUtilityClosingQuoteNotFound($parameterName)
94 94
     {
95 95
         return 'Value for MIME type parameter \''.$parameterName.'\' is incorrect because the closing quote character'
96
-               .' could not be found while the parameter value started with a quote character.';
96
+                .' could not be found while the parameter value started with a quote character.';
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceSet.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/http.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     {
18 18
         if ($notEndWithSvcOrHasQuery) {
19 19
             return 'Malformed base service uri in the configuration file (should end with .svc, there should not'.
20
-                   ' be query or fragment in the base service uri)';
20
+                    ' be query or fragment in the base service uri)';
21 21
         }
22 22
 
23 23
         return 'Malformed base service uri in the configuration file';
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public static function hostRequestUriIsNotBasedOnRelativeUriInConfig($requestUri, $relativeUri)
36 36
     {
37 37
         return 'The request uri ' . $requestUri . ' is not valid as it is not based on the configured relative uri '
38
-               . $relativeUri;
38
+                . $relativeUri;
39 39
     }
40 40
 
41 41
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public static function badRequestInvalidUriForMediaResource($uri)
88 88
     {
89 89
         return 'The URI \''.$uri.'\' is not valid. The segment before \'$value\' must be a Media Link Entry or'
90
-               .' a primitive property.';
90
+                .' a primitive property.';
91 91
     }
92 92
 
93 93
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public static function hostNonODataOptionBeginsWithSystemCharacter($optionName)
102 102
     {
103 103
         return 'The query parameter \''.$optionName.'\' begins with a system-reserved \'$\' character but'
104
-               .' is not recognized.';
104
+                .' is not recognized.';
105 105
     }
106 106
 
107 107
     /**
@@ -139,6 +139,6 @@  discard block
 block discarded – undo
139 139
     public static function bothIfMatchAndIfNoneMatchHeaderSpecified()
140 140
     {
141 141
         return 'Both If-Match and If-None-Match HTTP headers cannot be specified at the same time. Please specify'
142
-               .' either one of the headers or none of them.';
142
+                .' either one of the headers or none of them.';
143 143
     }
144 144
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/streamProviderWrapper.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.