Completed
Pull Request — master (#63)
by Christopher
05:17
created
src/POData/Writers/Metadata/MetadataManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
      *                                            edm schema version for the metadata
213 213
      * @param EdmSchemaVersion $edmSchemaVersion
214 214
      */
215
-    public function getDataServiceAndEdmSchemaVersions(Version &$dsVersion, &$edmSchemaVersion)
215
+    public function getDataServiceAndEdmSchemaVersions(Version & $dsVersion, &$edmSchemaVersion)
216 216
     {
217 217
         if ($this->_metadataResourceTypeSet->hasNamedStreams()) {
218 218
             $dsVersion->raiseVersion(3, 0);
Please login to merge, or discard this patch.
src/POData/Writers/Metadata/MetadataResourceTypeSet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                 $resourceType = $resourceProperty->getResourceType();
177 177
                 $resourceTypeNamespace = $this->getResourceTypeNamespace($resourceType);
178 178
                 $resourceTypesInNamespace = $this->getResourceTypesForNamespace($resourceTypeNamespace);
179
-                if (!array_key_exists($resourceTypeNamespace.'.'.$resourceType->getName(), $resourceTypesInNamespace)) {
179
+                if (!array_key_exists($resourceTypeNamespace . '.' . $resourceType->getName(), $resourceTypesInNamespace)) {
180 180
                     continue;
181 181
                 }
182 182
             }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     {
238 238
         $resourceTypeNamespace = $this->getResourceTypeNamespace($resourceType);
239 239
         $resourceTypesInNamespace = &$this->getResourceTypesForNamespace($resourceTypeNamespace);
240
-        $resourceNameWithNamespace = $resourceTypeNamespace.'.'.$resourceType->getName();
240
+        $resourceNameWithNamespace = $resourceTypeNamespace . '.' . $resourceType->getName();
241 241
         if (!array_key_exists($resourceNameWithNamespace, $resourceTypesInNamespace)) {
242 242
             if ($resourceType->isMediaLinkEntry()) {
243 243
                 $this->_hasVisibleMediaLinkEntry = true;
Please login to merge, or discard this patch.
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.