Test Setup Failed
Pull Request — master (#78)
by Alex
03:55
created
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
         $msg = "Request version '$requestedVersion' is not supported for the request payload."
20
-               ." The only supported version is '$requiredVersion'.";
20
+                ." The only supported version is '$requiredVersion'.";
21 21
         return $msg;
22 22
     }
23 23
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public static function requestVersionIsBiggerThanProtocolVersion($requiredVersion, $configuredVersion)
34 34
     {
35 35
         $msg = "The response requires that version $requiredVersion of the protocol be used, but the"
36
-               ." MaxProtocolVersion of the data service is set to $configuredVersion.";
36
+                ." MaxProtocolVersion of the data service is set to $configuredVersion.";
37 37
         return $msg;
38 38
     }
39 39
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $availableVersions
68 68
     ) {
69 69
         $msg = "The version value $requestedVersion in the header $requestHeaderName is not supported,"
70
-               ." available versions are $availableVersions";
70
+                ." available versions are $availableVersions";
71 71
         return $msg;
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/objectModelSerializer.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public static function badQueryNullKeysAreNotSupported($resourceTypeName, $keyName)
32 32
     {
33 33
         return "The serialized resource of type $resourceTypeName has a null value in key"
34
-               ." member '$keyName'. Null values are not supported in key members.";
34
+                ." member '$keyName'. Null values are not supported in key members.";
35 35
     }
36 36
 
37 37
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public static function objectModelSerializerFailedToAccessProperty($propertyName, $parentObjectName)
47 47
     {
48 48
         return "objectModelSerializer failed to access or initialize the property".
49
-               " $propertyName of $parentObjectName, Please contact provider.";
49
+                " $propertyName of $parentObjectName, Please contact provider.";
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 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".
48
+        return "objectModelSerializer failed to access or initialize the property" .
49 49
                " $propertyName of $parentObjectName, Please contact provider.";
50 50
     }
51 51
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/segmentParser.php 1 patch
Indentation   +12 added lines, -12 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"
18
-               ." segment $segment use named keys";
18
+                ." segment $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,"
34
-               ." a bag property, 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,"
34
+                ." a bag property, 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"
47
-               ." the uri contains the \$links segment, there must be only one segment specified after that.";
47
+                ." the uri contains the \$links segment, there must be only one segment specified after that.";
48 48
     }
49 49
 
50 50
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $primitivePropertySegment
63 63
     ) {
64 64
         return "The segment '$segment' in the request URI is not valid. Since the segment '$primitivePropertySegment'"
65
-               ." refers to a primitive type property, the only supported value from the next segment is '\$value'.";
65
+                ." refers to a primitive type property, the only supported value from the next segment is '\$value'.";
66 66
     }
67 67
 
68 68
     /**
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
     public static function segmentParserCannotQueryCollection($collectionSegment)
76 76
     {
77 77
         return "The request URI is not valid. Since the segment '$collectionSegment' refers to a collection,"
78
-               ." this must be the last segment in the request URI. All intermediate segments must refer to"
79
-               ." a single resource.";
78
+                ." this must be the last segment in the request URI. All intermediate segments must refer to"
79
+                ." a single resource.";
80 80
     }
81 81
 
82 82
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public static function segmentParserCountCannotFollowSingleton($segment)
90 90
     {
91 91
         return "The request URI is not valid, since the segment '$segment' refers to a singleton, and the"
92
-               ." segment '\$count' can only follow a resource collection.";
92
+                ." segment '\$count' can only follow a resource collection.";
93 93
     }
94 94
 
95 95
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     public static function segmentParserLinkSegmentMustBeFollowedByEntitySegment($segment)
104 104
     {
105 105
         return "The request URI is not valid. The segment '$segment' must refer to a navigation property"
106
-               ." since the previous segment identifier is '\$links'.";
106
+                ." since the previous segment identifier is '\$links'.";
107 107
     }
108 108
 
109 109
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public static function segmentParserMissingSegmentAfterLink()
115 115
     {
116 116
         return "The request URI is not valid. There must a segment specified after the '\$links' segment"
117
-               ." and the segment must refer to a entity resource.";
117
+                ." and the segment must refer to a entity resource.";
118 118
     }
119 119
 
120 120
     /**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public static function segmentParserSegmentNotAllowedOnRoot($segment)
129 129
     {
130 130
         return "The request URI is not valid, the segment '$segment' cannot be applied to the root of"
131
-               ." the service";
131
+                ." the service";
132 132
     }
133 133
 
134 134
     /**
@@ -164,6 +164,6 @@  discard block
 block discarded – undo
164 164
     public static function segmentParserCountCannotBeApplied($segment)
165 165
     {
166 166
         return "The request URI is not valid, \$count cannot be applied to the segment '$segment' "
167
-               ."since \$count can only follow a resource segment.";
167
+                ."since \$count can only follow a resource segment.";
168 168
     }
169 169
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/eTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public static function eTagCannotBeSpecified($uri)
51 51
     {
52 52
         return "If-Match or If-None-Match HTTP headers cannot be specified since the URI '$uri' refers to"
53
-               ." a collection of resources or has a \$count or \$link segment or has a \$expand as one"
54
-               ." of the query parameters.";
53
+                ." a collection of resources or has a \$count or \$link segment or has a \$expand as one"
54
+                ." of the query parameters.";
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public static function eTagNotAllowedForNonExistingResource()
14 14
     {
15
-        return 'The resource targeted by the request does not exists, eTag header is not allowed'.
15
+        return 'The resource targeted by the request does not exists, eTag header is not allowed' .
16 16
         ' for non-existing resource.';
17 17
     }
18 18
 
Please login to merge, or discard this patch.
src/POData/Common/Messages/queryProvider.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 queryProviderResultCountMissing($methodName, QueryType $queryType)
26 26
     {
27 27
         return "The implementation of the method $methodName must return a QueryResult instance"
28
-               ." with a count for queries of type $queryType.";
28
+                ." with a count for queries of type $queryType.";
29 29
     }
30 30
 
31 31
     /**
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
     public static function queryProviderResultsMissing($methodName, QueryType $queryType)
38 38
     {
39 39
         return "The implementation of the method $methodName must return a QueryResult instance with"
40
-               ." an array of results for queries of type $queryType.";
40
+                ." an array of results for queries of type $queryType.";
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/POData/UriProcessor/QueryProcessor/OrderByParser/OrderByLeafNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $a = $this->isAscending ? 1 : -1;
104 104
 
105
-        $retVal = function ($object1, $object2) use ($ancestors, $a) {
105
+        $retVal = function($object1, $object2) use ($ancestors, $a) {
106 106
             $accessor1 = $object1;
107 107
             $accessor2 = $object2;
108 108
             $flag1 = is_null($accessor1);
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
             if ($flag1 && $flag2) {
132 132
                 return 0;
133 133
             } elseif ($flag1) {
134
-                return $a * -1;
134
+                return $a*-1;
135 135
             } elseif ($flag2) {
136
-                return $a * 1;
136
+                return $a*1;
137 137
             }
138 138
             $type = $this->resourceProperty->getInstanceType();
139 139
             if ($type instanceof DateTime) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 $result = (0 == $delta) ? 0 : $delta/abs($delta);
148 148
             }
149 149
 
150
-            return $a * $result;
150
+            return $a*$result;
151 151
         };
152 152
 
153 153
         return $retVal;
Please login to merge, or discard this patch.
POData/UriProcessor/ResourcePathProcessor/SegmentParser/KeyDescriptor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -476,7 +476,7 @@
 block discarded – undo
476 476
      *
477 477
      * @return bool True if $value is a valid type else false
478 478
      */
479
-    private static function getTypeAndValidateKeyValue($value, $tokenId, &$outValue, IType &$outType = null)
479
+    private static function getTypeAndValidateKeyValue($value, $tokenId, &$outValue, IType & $outType = null)
480 480
     {
481 481
         switch ($tokenId) {
482 482
             case ExpressionTokenId::BOOLEAN_LITERAL:
Please login to merge, or discard this patch.