Completed
Pull Request — master (#126)
by Christopher
03:36
created
src/POData/Common/Messages/expressionLexer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $position
70 70
     ) {
71 71
         return 'No applicable function found for \''.$functionName.'\' at position '.$position.' with the specified'
72
-               .' arguments. The functions considered are: '.$protoTypes;
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/skipTokenParser.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public static function skipTokenParserSkipTokenNotMatchingOrdering($skipTokenValuesCount, $skipToken, $expectedCount)
42 42
     {
43 43
         return 'The number of keys \''.$skipTokenValuesCount.'\' in skip token with value \''.$skipToken
44
-               .'\' did not match the number of ordering constraints \''.$expectedCount.'\' for the resource type.';
44
+                .'\' did not match the number of ordering constraints \''.$expectedCount.'\' for the resource type.';
45 45
     }
46 46
 
47 47
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     public static function skipTokenParserInCompatibleTypeAtPosition($skipToken, $expectedTypeName, $position, $typeProvidedInSkipTokenName)
74 74
     {
75 75
         return 'The skiptoken value \''.$skipToken.'\' contains a value of type \''.$typeProvidedInSkipTokenName
76
-               .'\' at position '.$position.' which is not compatible with the type \''.$expectedTypeName
77
-               .'\' of corresponding orderby constraint.';
76
+                .'\' at position '.$position.' which is not compatible with the type \''.$expectedTypeName
77
+                .'\' of corresponding orderby constraint.';
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/segmentParser.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public static function segmentParserKeysMustBeNamed($segment)
16 16
     {
17 17
         return 'Segments with multiple key values must specify them in \'name=value\' form. For the segment'
18
-               . $segment.' use named keys';
18
+                . $segment.' use named keys';
19 19
     }
20 20
 
21 21
     /**
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     public static function segmentParserMustBeLeafSegment($leafSegment)
31 31
     {
32 32
         return 'The request URI is not valid. The segment \''.$leafSegment.'\' must be the last segment in'
33
-               .' the URI because it is one of the following: $batch, $value, $metadata, $count, a bag property,'
34
-               .' a named media resource, or a service operation that does not return a value.';
33
+                .' the URI because it is one of the following: $batch, $value, $metadata, $count, a bag property,'
34
+                .' a named media resource, or a service operation that does not return a value.';
35 35
     }
36 36
 
37 37
     /**
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public static function segmentParserNoSegmentAllowedAfterPostLinkSegment($postPostLinkSegment)
45 45
     {
46 46
         return 'The request URI is not valid. The segment \''.$postPostLinkSegment.'\' is not valid. Since the'
47
-               .' uri contains the $links segment, there must be only one segment specified after that.';
47
+                .' uri contains the $links segment, there must be only one segment specified after that.';
48 48
     }
49 49
 
50 50
     /**
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     public static function segmentParserOnlyValueSegmentAllowedAfterPrimitivePropertySegment($segment, $primitivePropertySegment)
61 61
     {
62 62
         return 'The segment \''.$segment.'\' in the request URI is not valid. Since the segment \''
63
-               .$primitivePropertySegment.'\' refers to a primitive type property, the only supported value from'
64
-               .' the next segment is \'$value\'.';
63
+                .$primitivePropertySegment.'\' refers to a primitive type property, the only supported value from'
64
+                .' the next segment is \'$value\'.';
65 65
     }
66 66
 
67 67
     /**
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     public static function segmentParserCannotQueryCollection($collectionSegment)
75 75
     {
76 76
         return 'The request URI is not valid. Since the segment \''.$collectionSegment.'\' refers to a'
77
-               .' collection, this must be the last segment in the request URI. All intermediate segments must'
78
-               .' refer to a single resource.';
77
+                .' collection, this must be the last segment in the request URI. All intermediate segments must'
78
+                .' refer to a single resource.';
79 79
     }
80 80
 
81 81
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public static function segmentParserCountCannotFollowSingleton($segment)
89 89
     {
90 90
         return 'The request URI is not valid, since the segment \''.$segment.'\' refers to a singleton,'
91
-               .' and the segment \'$count\' can only follow a resource collection.';
91
+                .' and the segment \'$count\' can only follow a resource collection.';
92 92
     }
93 93
 
94 94
     /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     public static function segmentParserLinkSegmentMustBeFollowedByEntitySegment($segment)
103 103
     {
104 104
         return 'The request URI is not valid. The segment \''.$segment.'\' must refer to a navigation property'
105
-               .' since the previous segment identifier is \'$links\'.';
105
+                .' since the previous segment identifier is \'$links\'.';
106 106
     }
107 107
 
108 108
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public static function segmentParserMissingSegmentAfterLink()
114 114
     {
115 115
         return 'The request URI is not valid. There must a segment specified after the \'$links\' segment and'
116
-               .' the segment must refer to a entity resource.';
116
+                .' the segment must refer to a entity resource.';
117 117
     }
118 118
 
119 119
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public static function segmentParserSegmentNotAllowedOnRoot($segment)
128 128
     {
129 129
         return 'The request URI is not valid, the segment \''.$segment.'\' cannot be applied to the root of the'
130
-               .' service';
130
+                .' service';
131 131
     }
132 132
 
133 133
     /**
@@ -163,6 +163,6 @@  discard block
 block discarded – undo
163 163
     public static function segmentParserCountCannotBeApplied($segment)
164 164
     {
165 165
         return 'The request URI is not valid, $count cannot be applied to the segment \''.$segment.'\' since '
166
-               .'$count can only follow a resource segment.';
166
+                .'$count can only follow a resource segment.';
167 167
     }
168 168
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataWriter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public static function metadataWriterNoResourceAssociationSetForNavigationProperty($navigationPropertyName, $resourceTypeName)
29 29
     {
30 30
         return 'No visible ResourceAssociationSet found for navigation property \''.$navigationPropertyName.
31
-               '\' on type \''.$resourceTypeName.'\'. There must be at least one ResourceAssociationSet for'.
32
-               ' each navigation property.';
31
+                '\' on type \''.$resourceTypeName.'\'. There must be at least one ResourceAssociationSet for'.
32
+                ' each navigation property.';
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionParser.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public static function expressionParserOperatorNotSupportNull($operator, $pos)
30 30
     {
31 31
         return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the \'null\''
32
-               .' literal; only equality checks are supported';
32
+                .' literal; only equality checks are supported';
33 33
     }
34 34
 
35 35
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public static function expressionParserOperatorNotSupportGuid($operator, $pos)
44 44
     {
45 45
         return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the Edm.Guid;'
46
-               .' only equality checks are supported';
46
+                .' only equality checks are supported';
47 47
     }
48 48
 
49 49
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public static function expressionParserOperatorNotSupportBinary($operator, $pos)
58 58
     {
59 59
         return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the Edm.Binary;'
60
-               .' only equality checks are supported';
60
+                .' only equality checks are supported';
61 61
     }
62 62
 
63 63
     /**
@@ -132,6 +132,6 @@  discard block
 block discarded – undo
132 132
     public static function expressionParserEntityCollectionNotAllowedInFilter($property, $parentProperty, $pos)
133 133
     {
134 134
         return 'The \''.$property.'\' is an entity collection property of \''.$parentProperty.'\' (position: '.$pos
135
-               .'), which cannot be used in $filter query option';
135
+                .'), which cannot be used in $filter query option';
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/request.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public static function requestVersionTooLow($requestedVersion, $requiredVersion)
18 18
     {
19 19
         return 'Request version \''.$requestedVersion.'\' is not supported for the request payload. The only'
20
-               .' supported version is \''.$requiredVersion.'\'.';
20
+                .' supported version is \''.$requiredVersion.'\'.';
21 21
     }
22 22
 
23 23
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion)
33 33
     {
34 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.'.';
35
+                .' MaxProtocolVersion of the data service is set to '.$configuredVersion.'.';
36 36
     }
37 37
 
38 38
     /**
@@ -62,6 +62,6 @@  discard block
 block discarded – undo
62 62
     public static function requestDescriptionUnSupportedVersion($requestHeaderName, $requestedVersion, $availableVersions)
63 63
     {
64 64
         return 'The version value '.$requestedVersion.' in the header '.$requestHeaderName.' is not'
65
-               .' supported, available versions are '.$availableVersions;
65
+                .' supported, available versions are '.$availableVersions;
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataResourceType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported($entitySetName, $derivedTypeName)
17 17
     {
18 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.'\'.';
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
     /**
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
     public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName)
33 33
     {
34 34
         return 'Complex type \''.$complexTypeName.'\' has derived types and is used as the item type in a bag.'
35
-               .' Only bags containing complex types without derived types are supported.';
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/ObjectModel/ObjectModelSerializerBase.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -469,7 +469,7 @@
 block discarded – undo
469 469
                     ODataConstants::HTTPQUERY_STRING_ORDERBY,
470 470
                     ODataConstants::HTTPQUERY_STRING_INLINECOUNT,
471 471
                     ODataConstants::HTTPQUERY_STRING_SELECT
472
-                 ] as $queryOption) {
472
+                    ] as $queryOption) {
473 473
             $value = $this->getService()->getHost()->getQueryStringItem($queryOption);
474 474
             if (null !== $value) {
475 475
                 if (null !== $queryParameterString) {
Please login to merge, or discard this patch.