Completed
Pull Request — master (#127)
by Christopher
09:45
created
src/POData/Common/Messages/segmentParser.php 1 patch
Spacing   +10 added lines, -10 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
     /**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public static function segmentParserMustBeLeafSegment($leafSegment)
31 31
     {
32
-        return 'The request URI is not valid. The segment \''.$leafSegment.'\' must be the last segment in'
32
+        return 'The request URI is not valid. The segment \'' . $leafSegment . '\' must be the last segment in'
33 33
                 .' the URI because it is one of the following: $batch, $value, $metadata, $count, a bag property,'
34 34
                 .' a named media resource, or a service operation that does not return a value.';
35 35
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function segmentParserNoSegmentAllowedAfterPostLinkSegment($postPostLinkSegment)
45 45
     {
46
-        return 'The request URI is not valid. The segment \''.$postPostLinkSegment.'\' is not valid. Since the'
46
+        return 'The request URI is not valid. The segment \'' . $postPostLinkSegment . '\' is not valid. Since the'
47 47
                 .' uri contains the $links segment, there must be only one segment specified after that.';
48 48
     }
49 49
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function segmentParserOnlyValueSegmentAllowedAfterPrimitivePropertySegment($segment, $primitivePropertySegment)
61 61
     {
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'
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 64
                 .' the next segment is \'$value\'.';
65 65
     }
66 66
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public static function segmentParserCannotQueryCollection($collectionSegment)
75 75
     {
76
-        return 'The request URI is not valid. Since the segment \''.$collectionSegment.'\' refers to a'
76
+        return 'The request URI is not valid. Since the segment \'' . $collectionSegment . '\' refers to a'
77 77
                 .' collection, this must be the last segment in the request URI. All intermediate segments must'
78 78
                 .' refer to a single resource.';
79 79
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public static function segmentParserCountCannotFollowSingleton($segment)
89 89
     {
90
-        return 'The request URI is not valid, since the segment \''.$segment.'\' refers to a singleton,'
90
+        return 'The request URI is not valid, since the segment \'' . $segment . '\' refers to a singleton,'
91 91
                 .' and the segment \'$count\' can only follow a resource collection.';
92 92
     }
93 93
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public static function segmentParserLinkSegmentMustBeFollowedByEntitySegment($segment)
103 103
     {
104
-        return 'The request URI is not valid. The segment \''.$segment.'\' must refer to a navigation property'
104
+        return 'The request URI is not valid. The segment \'' . $segment . '\' must refer to a navigation property'
105 105
                 .' since the previous segment identifier is \'$links\'.';
106 106
     }
107 107
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public static function segmentParserSegmentNotAllowedOnRoot($segment)
128 128
     {
129
-        return 'The request URI is not valid, the segment \''.$segment.'\' cannot be applied to the root of the'
129
+        return 'The request URI is not valid, the segment \'' . $segment . '\' cannot be applied to the root of the'
130 130
                 .' service';
131 131
     }
132 132
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public static function segmentParserCountCannotBeApplied($segment)
164 164
     {
165
-        return 'The request URI is not valid, $count cannot be applied to the segment \''.$segment.'\' since '
165
+        return 'The request URI is not valid, $count cannot be applied to the segment \'' . $segment . '\' since '
166 166
                 .'$count can only follow a resource segment.';
167 167
     }
168 168
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/skipTokenParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public static function skipTokenParserSkipTokenNotMatchingOrdering($skipTokenValuesCount, $skipToken, $expectedCount)
42 42
     {
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.';
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.';
45 45
     }
46 46
 
47 47
     /**
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public static function skipTokenParserInCompatibleTypeAtPosition($skipToken, $expectedTypeName, $position, $typeProvidedInSkipTokenName)
74 74
     {
75
-        return 'The skiptoken value \''.$skipToken.'\' contains a value of type \''.$typeProvidedInSkipTokenName
76
-                .'\' at position '.$position.' which is not compatible with the type \''.$expectedTypeName
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 77
                 .'\' of corresponding orderby constraint.';
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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/metadataAssociationType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function metadataAssociationTypeSetBidirectionalAssociationMustReturnSameResourceAssociationSetFromBothEnd()
16 16
     {
17
-        return 'When the ResourceAssociationSet is bidirectional, IMetadataProvider::getResourceAssociationSet() must'.
17
+        return 'When the ResourceAssociationSet is bidirectional, IMetadataProvider::getResourceAssociationSet() must' .
18 18
                 ' return the same ResourceAssociationSet when call from both ends.';
19 19
     }
20 20
 
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public static function metadataAssociationTypeSetMultipleAssociationSetsForTheSameAssociationTypeMustNotReferToSameEndSets($resourceSet1Name, $resourceSet2Name, $entitySetName)
33 33
     {
34
-        return 'ResourceAssociationSets \''.$resourceSet1Name.'\' and \''.$resourceSet2Name.'\' have a'
35
-                .' ResourceAssociationSetEnd referring to the same EntitySet \''.$entitySetName.'\' through the same'
34
+        return 'ResourceAssociationSets \'' . $resourceSet1Name . '\' and \'' . $resourceSet2Name . '\' have a'
35
+                .' ResourceAssociationSetEnd referring to the same EntitySet \'' . $entitySetName . '\' through the same'
36 36
                 .' AssociationType. Make sure that if two or more AssociationSets refer to the same AssociationType,'
37 37
                 .' the ends must not refer to the same EntitySet. (this could happen if multiple entity sets have'
38 38
                 .' entity types that have a common ancestor and the ancestor has a property of derived entity types)';
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
     public static function metadataAssociationTypeSetInvalidGetDerivedTypesReturnType($resourceTypeName)
50 50
     {
51 51
         return 'Return type of IDSMP::getDerivedTypes should be either null or array of \'ResourceType\', check'
52
-                .' implementation of IDSMP::getDerivedTypes for the resource type \''.$resourceTypeName.'\'.';
52
+                .' implementation of IDSMP::getDerivedTypes for the resource type \'' . $resourceTypeName . '\'.';
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public static function queryProviderResultCountMissing($methodName, QueryType $queryType)
26 26
     {
27
-        return 'The implementation of the method '.$methodName.' must return a QueryResult instance with a count for '
28
-                .'queries of type '.$queryType.'.';
27
+        return 'The implementation of the method ' . $methodName . ' must return a QueryResult instance with a count for '
28
+                .'queries of type ' . $queryType . '.';
29 29
     }
30 30
 
31 31
     /**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public static function queryProviderResultsMissing($methodName, QueryType $queryType)
38 38
     {
39
-        return 'The implementation of the method '.$methodName.' must return a QueryResult instance with an array'
40
-                .' of results for queries of type '.$queryType.'.';
39
+        return 'The implementation of the method ' . $methodName . ' must return a QueryResult instance with an array'
40
+                .' of results for queries of type ' . $queryType . '.';
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/objectModelSerializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function badQueryNullKeysAreNotSupported($resourceTypeName, $keyName)
32 32
     {
33
-        return 'The serialized resource of type '.$resourceTypeName.' has a null value in key member \''.$keyName
33
+        return 'The serialized resource of type ' . $resourceTypeName . ' has a null value in key member \'' . $keyName
34 34
                 .'\'. Null values are not supported in key members.';
35 35
     }
36 36
 
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function objectModelSerializerFailedToAccessProperty($propertyName, $parentObjectName)
47 47
     {
48
-        return 'objectModelSerializer failed to access or initialize the property '.$propertyName.' of '
49
-                .$parentObjectName.', Please contact provider.';
48
+        return 'objectModelSerializer failed to access or initialize the property ' . $propertyName . ' of '
49
+                .$parentObjectName . ', Please contact provider.';
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public static function expressionParserOperatorNotSupportNull($operator, $pos)
30 30
     {
31
-        return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the \'null\''
31
+        return 'The operator \'' . $operator . '\' at position ' . $pos . ' is not supported for the \'null\''
32 32
                 .' literal; only equality checks are supported';
33 33
     }
34 34
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public static function expressionParserOperatorNotSupportGuid($operator, $pos)
44 44
     {
45
-        return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the Edm.Guid;'
45
+        return 'The operator \'' . $operator . '\' at position ' . $pos . ' is not supported for the Edm.Guid;'
46 46
                 .' only equality checks are supported';
47 47
     }
48 48
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public static function expressionParserOperatorNotSupportBinary($operator, $pos)
58 58
     {
59
-        return 'The operator \''.$operator.'\' at position '.$pos.' is not supported for the Edm.Binary;'
59
+        return 'The operator \'' . $operator . '\' at position ' . $pos . ' is not supported for the Edm.Binary;'
60 60
                 .' only equality checks are supported';
61 61
     }
62 62
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public static function expressionParserEntityCollectionNotAllowedInFilter($property, $parentProperty, $pos)
133 133
     {
134
-        return 'The \''.$property.'\' is an entity collection property of \''.$parentProperty.'\' (position: '.$pos
134
+        return 'The \'' . $property . '\' is an entity collection property of \'' . $parentProperty . '\' (position: ' . $pos
135 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/eTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public static function eTagCannotBeSpecified($uri)
51 51
     {
52
-        return 'If-Match or If-None-Match HTTP headers cannot be specified since the URI \''.$uri.'\' refers to a'
52
+        return 'If-Match or If-None-Match HTTP headers cannot be specified since the URI \'' . $uri . '\' refers to a'
53 53
                 .' collection of resources or has a $count or $link segment or has an $expand as one of the query'
54 54
                 .' parameters.';
55 55
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
      */
28 28
     public static function metadataWriterNoResourceAssociationSetForNavigationProperty($navigationPropertyName, $resourceTypeName)
29 29
     {
30
-        return 'No visible ResourceAssociationSet found for navigation property \''.$navigationPropertyName.
31
-                '\' on type \''.$resourceTypeName.'\'. There must be at least one ResourceAssociationSet for'.
30
+        return 'No visible ResourceAssociationSet found for navigation property \'' . $navigationPropertyName .
31
+                '\' on type \'' . $resourceTypeName . '\'. There must be at least one ResourceAssociationSet for' .
32 32
                 ' each navigation property.';
33 33
     }
34 34
 }
Please login to merge, or discard this patch.