Completed
Pull Request — master (#63)
by Christopher
05:17
created
src/POData/Writers/ResponseWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         $service->getHost()->setResponseStatusCode(HttpStatus::CODE_OK);
80 80
         $service->getHost()->setResponseContentType($responseContentType);
81
-        $service->getHost()->setResponseVersion($dataServiceVersion->toString().';');
81
+        $service->getHost()->setResponseVersion($dataServiceVersion->toString() . ';');
82 82
         $service->getHost()->setResponseCacheControl(ODataConstants::HTTPRESPONSE_HEADER_CACHECONTROL_NOCACHE);
83 83
         $service->getHost()->getOperationContext()->outgoingResponse()->setStream($responseBody);
84 84
     }
Please login to merge, or discard this patch.
src/POData/Common/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public function toString()
114 114
     {
115
-        return $this->major.'.'.$this->minor;
115
+        return $this->major . '.' . $this->minor;
116 116
     }
117 117
 
118 118
     //Is there a better way to do static const of complex type?
Please login to merge, or discard this patch.
src/POData/Common/Messages/expandProjectionParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,6 +116,6 @@
 block discarded – undo
116 116
      */
117 117
     public static function expandProjectionParserPropertyWithoutMatchingExpand($propertyName)
118 118
     {
119
-        return 'Only navigation properties specified in expand option can be travered in select option,In order to treaverse the navigation property \''.$propertyName.'\', it should be first expanded';
119
+        return 'Only navigation properties specified in expand option can be travered in select option,In order to treaverse the navigation property \'' . $propertyName . '\', it should be first expanded';
120 120
     }
121 121
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/objectModelSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
      */
58 58
     public static function objectModelSerializerLoopsNotAllowedInComplexTypes($complexPropertyName)
59 59
     {
60
-        return 'A circular loop was detected while serializing the property \''.$complexPropertyName.'\'. You must make sure that loops are not present in properties that return a bag or complex type.';
60
+        return 'A circular loop was detected while serializing the property \'' . $complexPropertyName . '\'. You must make sure that loops are not present in properties that return a bag or complex type.';
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/providersWrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public static function providersWrapperIDSQPMethodReturnsUnExpectedType($entityTypeName, $methodName)
113 113
     {
114
-        return 'The implementation of the method '.$methodName.' must return an instance of type described by resource set\'s type('.$entityTypeName.') or null if resource does not exist.';
114
+        return 'The implementation of the method ' . $methodName . ' must return an instance of type described by resource set\'s type(' . $entityTypeName . ') or null if resource does not exist.';
115 115
     }
116 116
 
117 117
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public static function providersWrapperIDSQPMethodReturnsInstanceWithNullKeyProperties($methodName)
126 126
     {
127
-        return 'The '.$methodName.' implementation returns an entity with null key propert(y|ies).';
127
+        return 'The ' . $methodName . ' implementation returns an entity with null key propert(y|ies).';
128 128
     }
129 129
 
130 130
     /**
@@ -138,6 +138,6 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public static function providersWrapperIDSQPMethodReturnsInstanceWithNonMatchingKeys($methodName)
140 140
     {
141
-        return 'The '.$methodName.' implementation returns an instance with non-matching key';
141
+        return 'The ' . $methodName . ' implementation returns an instance with non-matching key';
142 142
     }
143 143
 }
Please login to merge, or discard this patch.
src/POData/Common/Messages/http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function hostRequestUriIsNotBasedOnRelativeUriInConfig($requestUri, $relativeUri)
35 35
     {
36
-        return 'The request uri '.$requestUri.' is not valid as it is not based on the configured relative uri '.$relativeUri;
36
+        return 'The request uri ' . $requestUri . ' is not valid as it is not based on the configured relative uri ' . $relativeUri;
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/expressionLexer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function expressionLexerUnterminatedStringLiteral($pos, $text)
16 16
     {
17
-        return 'Unterminated string literal at position '.$pos.' in '.$text;
17
+        return 'Unterminated string literal at position ' . $pos . ' in ' . $text;
18 18
     }
19 19
 
20 20
     /**
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function expressionLexerDigitExpected($pos)
28 28
     {
29
-        return 'Digit expected at position '.$pos;
29
+        return 'Digit expected at position ' . $pos;
30 30
     }
31 31
 
32 32
     /**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public static function expressionLexerSyntaxError($pos)
40 40
     {
41
-        return 'Syntax Error at position '.$pos;
41
+        return 'Syntax Error at position ' . $pos;
42 42
     }
43 43
 
44 44
     /**
Please login to merge, or discard this patch.
src/POData/Common/Messages/keyDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public static function keyDescriptorInCompatibleKeyType($segment, $keyProperty, $expectedType, $actualType)
48 48
     {
49
-        return "Syntax error in the segment '$segment'. The value of key property '$keyProperty' should be of type ".$expectedType.', given '.$actualType;
49
+        return "Syntax error in the segment '$segment'. The value of key property '$keyProperty' should be of type " . $expectedType . ', given ' . $actualType;
50 50
     }
51 51
 
52 52
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public static function keyDescriptorInCompatibleKeyTypeAtPosition($segment, $keyProperty, $position, $expectedType, $actualType)
65 65
     {
66
-        return "Syntax error in the segment '$segment'. The value of key property '$keyProperty' at position $position should be of type ".$expectedType.', given '.$actualType;
66
+        return "Syntax error in the segment '$segment'. The value of key property '$keyProperty' at position $position should be of type " . $expectedType . ', given ' . $actualType;
67 67
     }
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
src/POData/Common/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             $exception = new ODataException($exception->getMessage(), HttpStatus::CODE_INTERNAL_SERVER_ERROR);
48 48
         }
49 49
 
50
-        $service->getHost()->setResponseVersion(ODataConstants::DATASERVICEVERSION_1_DOT_0.';');
50
+        $service->getHost()->setResponseVersion(ODataConstants::DATASERVICEVERSION_1_DOT_0 . ';');
51 51
 
52 52
         // At this point all kind of exceptions will be converted
53 53
         //to 'ODataException'
Please login to merge, or discard this patch.