Test Setup Failed
Pull Request — master (#78)
by Alex
03:55
created
src/POData/ObjectModel/ObjectModelSerializerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@
 block discarded – undo
397 397
      *
398 398
      * @return bool true if the segment was push, false otherwise
399 399
      */
400
-    private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper)
400
+    private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper)
401 401
     {
402 402
         // Even though there is no expand in the request URI, still we need to push
403 403
         // the segment information if we need to count
Please login to merge, or discard this patch.
src/POData/Writers/Json/JsonWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,8 +157,8 @@
 block discarded – undo
157 157
 
158 158
             case 'Edm.DateTime':
159 159
                 $dateTime = new Carbon($value, new \DateTimeZone('UTC'));
160
-                $formattedDateTime = $dateTime->format('U') * 1000;
161
-                $this->writeCore('/Date('.$formattedDateTime.')/', /* quotes */ true);
160
+                $formattedDateTime = $dateTime->format('U')*1000;
161
+                $this->writeCore('/Date(' . $formattedDateTime . ')/', /* quotes */ true);
162 162
                 break;
163 163
 
164 164
             case 'Edm.String':
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,7 +13,7 @@
 block discarded – undo
13 13
     public static function resourceSetContainerMustBeAssociatedWithEntityType()
14 14
     {
15 15
         $msg = '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
         return $msg;
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionLexer.php 2 patches
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
         $msg  ="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
         return $msg;
74 74
     }
75 75
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $protoTypes,
69 69
         $position
70 70
     ) {
71
-        $msg  ="No applicable function found for '$functionName' at position $position with the specified"
71
+        $msg = "No applicable function found for '$functionName' at position $position with the specified"
72 72
                ." arguments. The functions considered are: $protoTypes";
73 73
         return $msg;
74 74
     }
Please login to merge, or discard this patch.
src/POData/Common/Messages/common.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
     public static function badRequestInvalidPropertyNameSpecified($resourceTypeName, $propertyName)
93 93
     {
94 94
         $msg = "Error processing request stream. The property name '$propertyName' specified for"
95
-               ." type '$resourceTypeName' is not valid. (Check the resource set of the navigation"
96
-               ." property '$propertyName' is visible)";
95
+                ." type '$resourceTypeName' is not valid. (Check the resource set of the navigation"
96
+                ." property '$propertyName' is visible)";
97 97
         return $msg;
98 98
     }
99 99
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProcessor.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     public static function queryProcessorSkipTokenCannotBeAppliedForNonPagedResourceSet($resourceSetName)
124 124
     {
125 125
         return "\$skiptoken cannot be applied to the resource set '$resourceSetName', since paging"
126
-               ." is not enabled for this resource set";
126
+                ." 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/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
         $msg = "Value for MIME type parameter '$parameterName' is incorrect because it contained"
68
-               ." escape characters even though it was not quoted.";
68
+                ." escape characters even though it was not quoted.";
69 69
         return $msg;
70 70
     }
71 71
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public static function httpProcessUtilityEscapeCharAtEnd($parameterName)
81 81
     {
82 82
         $msg = "Value for MIME type parameter '$parameterName' is incorrect because it terminated with an"
83
-               ." escape character. Escape characters must always be followed by a character in a parameter value.";
83
+                ." escape character. Escape characters must always be followed by a character in a parameter value.";
84 84
         return $msg;
85 85
     }
86 86
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public static function httpProcessUtilityClosingQuoteNotFound($parameterName)
96 96
     {
97 97
         return "Value for MIME type parameter '$parameterName' is incorrect because the closing quote"
98
-               ." character could not be found while the parameter value started with a quote character.";
98
+                ." character could not be found while the parameter value started with a quote character.";
99 99
     }
100 100
 
101 101
     /**
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
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
         $derivedTypeName
19 19
     ) {
20 20
         $msg = "Named streams are not supported on derived entity types. Entity Set '$entitySetName' has"
21
-               ." a instance of type '$derivedTypeName', which is an derived entity type and has named"
22
-               ." streams. Please remove all named streams from type '$derivedTypeName'.";
21
+                ." a instance of type '$derivedTypeName', which is an derived entity type and has named"
22
+                ." streams. Please remove all named streams from type '$derivedTypeName'.";
23 23
         return $msg;
24 24
     }
25 25
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public static function metadataResourceTypeSetBagOfComplexTypeWithDerivedTypes($complexTypeName)
36 36
     {
37 37
         $msg = "Complex type '$complexTypeName' has derived types and is used as the item type in a bag."
38
-               ." Only bags containing complex types without derived types are supported.";
38
+                ." Only bags containing complex types without derived types are supported.";
39 39
         return $msg;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/resourceProperty.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public static function resourcePropertyInvalidKindParameter($argumentName)
15 15
     {
16 16
         $msg = "The argument '$argumentName' is not a valid ResourcePropertyKind enum value or valid".
17
-               " combination of ResourcePropertyKind enum values";
17
+                " combination of ResourcePropertyKind enum values";
18 18
         return $msg;
19 19
     }
20 20
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $resourceTypeArgName
32 32
     ) {
33 33
         $msg = "The '$resourcePropertyKindArgName' parameter does not match with the type of the resource"
34
-               ." type in parameter '$resourceTypeArgName'";
34
+                ." type in parameter '$resourceTypeArgName'";
35 35
         return $msg;
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public static function resourcePropertyInvalidKindParameter($argumentName)
15 15
     {
16
-        $msg = "The argument '$argumentName' is not a valid ResourcePropertyKind enum value or valid".
16
+        $msg = "The argument '$argumentName' is not a valid ResourcePropertyKind enum value or valid" .
17 17
                " combination of ResourcePropertyKind enum values";
18 18
         return $msg;
19 19
     }
Please login to merge, or discard this patch.