Passed
Pull Request — master (#245)
by Christopher
04:06
created
src/POData/Common/Messages/providersWrapper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,7 @@
 block discarded – undo
109 109
         $resourceSetName,
110 110
         $resourceTypeName,
111 111
         $resourcePropertyName
112
-    )
113
-    {
112
+    ) {
114 113
         return 'IDSMP::GetResourceSet returns invalid instance of ResourceSet when invoked with params' .
115 114
             ' {ResourceSet with name ' . $resourceSetName . ', ResourceType with name ' . $resourceTypeName
116 115
             . ', ResourceProperty with name ' . $resourcePropertyName . '}.';
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceAssociationSet.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
     public static function resourceAssociationSetEndResourceTypeMustBeAssignableToResourceSet(
51 51
         $resourceTypeName,
52 52
         $resourceSetName
53
-    )
54
-    {
53
+    ) {
55 54
         return 'The resource type ' . $resourceTypeName . ' must be assignable to the resource set ' .
56 55
             $resourceSetName . '.';
57 56
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/keyDescriptor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
         $position,
77 77
         $expectedType,
78 78
         $actualType
79
-    )
80
-    {
79
+    ) {
81 80
         return 'Syntax error in the segment \'' . $segment . '\'. The value of key property \'' . $keyProperty
82 81
             . '\' at position ' . $position . ' should be of type ' . $expectedType . ', given ' . $actualType;
83 82
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/segmentParser.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
     public static function segmentParserOnlyValueSegmentAllowedAfterPrimitivePropertySegment(
67 67
         $segment,
68 68
         $primitivePropertySegment
69
-    )
70
-    {
69
+    ) {
71 70
         return 'The segment \'' . $segment . '\' in the request URI is not valid. Since the segment \''
72 71
             . $primitivePropertySegment . '\' refers to a primitive type property, the only supported value from'
73 72
             . ' the next segment is \'$value\'.';
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceProperty.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
     public static function resourcePropertyPropertyKindAndResourceTypeKindMismatch(
35 35
         $resourcePropertyKindArgName,
36 36
         $resourceTypeArgName
37
-    )
38
-    {
37
+    ) {
39 38
         return 'The \'' . $resourcePropertyKindArgName . '\' parameter does not match with the type of the resource'
40 39
             . ' type in parameter \'' . $resourceTypeArgName . '\'';
41 40
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/skipTokenInfo.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
     public static function skipTokenInfoBothOrderByPathAndOrderByValuesShouldBeSetOrNotSet(
26 26
         $orderByPathsVarName,
27 27
         $orderByValuesVarName
28
-    )
29
-    {
28
+    ) {
30 29
         return 'Either both the arguments ' . $orderByPathsVarName . ' and ' . $orderByValuesVarName . ' should be'
31 30
             . ' null or not-null';
32 31
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataResourceType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
     public static function metadataResourceTypeSetNamedStreamsOnDerivedEntityTypesNotSupported(
23 23
         $entitySetName,
24 24
         $derivedTypeName
25
-    )
26
-    {
25
+    ) {
27 26
         return 'Named streams are not supported on derived entity types. Entity Set \'' . $entitySetName
28 27
             . '\' has an instance of type \'' . $derivedTypeName . '\', which is a derived entity type and has'
29 28
             . ' named streams. Please remove all named streams from type \'' . $derivedTypeName . '\'.';
Please login to merge, or discard this patch.
src/POData/Common/Messages/metadataAssociationType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         $resourceSet1Name,
40 40
         $resourceSet2Name,
41 41
         $entitySetName
42
-    )
43
-    {
42
+    ) {
44 43
         return 'ResourceAssociationSets \'' . $resourceSet1Name . '\' and \'' . $resourceSet2Name . '\' have a'
45 44
             . ' ResourceAssociationSetEnd referring to the EntitySet \'' . $entitySetName . '\' through the same'
46 45
             . ' AssociationType. Make sure that if two or more AssociationSets refer to the same AssociationType,'
Please login to merge, or discard this patch.
src/POData/BatchProcessor/ChangeSetParser.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,8 +143,7 @@  discard block
 block discarded – undo
143 143
         $response .= false === $this->changeSetBoundary ? "\r\n" : "--\r\n";
144 144
         $response = 'Content-Length: ' . strlen($response) . "\r\n\r\n" . $response;
145 145
         $response = false === $this->changeSetBoundary ?
146
-            $response :
147
-            'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
146
+            $response : 'Content-Type: multipart/mixed; boundary=' . $this->changeSetBoundary . "\r\n" . $response;
148 147
         return $response;
149 148
     }
150 149
 
@@ -228,7 +227,7 @@  discard block
 block discarded – undo
228 227
             if ($contentIDinit == $contentID) {
229 228
                 $contentIDinit--;
230 229
             }
231
-            $this->rawRequests[$contentID] = (object)[
230
+            $this->rawRequests[$contentID] = (object) [
232 231
                 'RequestVerb' => $requestPathParts[0],
233 232
                 'RequestURL' => $requestPathParts[1],
234 233
                 'ServerParams' => $serverParts,
Please login to merge, or discard this patch.