@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * |
105 | 105 | * @return ODataFeed |
106 | 106 | */ |
107 | - public function writeTopLevelElements(QueryResult &$entryObjects) |
|
107 | + public function writeTopLevelElements(QueryResult & $entryObjects) |
|
108 | 108 | { |
109 | 109 | // TODO: Implement writeTopLevelElements() method. |
110 | 110 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @return ODataPropertyContent |
180 | 180 | */ |
181 | - public function writeTopLevelComplexObject(QueryResult &$complexValue, $propertyName, ResourceType &$resourceType) |
|
181 | + public function writeTopLevelComplexObject(QueryResult & $complexValue, $propertyName, ResourceType & $resourceType) |
|
182 | 182 | { |
183 | 183 | $result = $complexValue->results; |
184 | 184 | |
@@ -205,14 +205,14 @@ discard block |
||
205 | 205 | * |
206 | 206 | * @return ODataPropertyContent |
207 | 207 | */ |
208 | - public function writeTopLevelBagObject(QueryResult &$bagValue, $propertyName, ResourceType &$resourceType) |
|
208 | + public function writeTopLevelBagObject(QueryResult & $bagValue, $propertyName, ResourceType & $resourceType) |
|
209 | 209 | { |
210 | 210 | $result = $bagValue->results; |
211 | 211 | |
212 | 212 | $propertyContent = new ODataPropertyContent(); |
213 | 213 | $odataProperty = new ODataProperty(); |
214 | 214 | $odataProperty->name = $propertyName; |
215 | - $odataProperty->typeName = 'Collection('.$resourceType->getFullName().')'; |
|
215 | + $odataProperty->typeName = 'Collection(' . $resourceType->getFullName() . ')'; |
|
216 | 216 | $odataProperty->value = $this->writeBagValue($resourceType, $result); |
217 | 217 | |
218 | 218 | $propertyContent->properties[] = $odataProperty; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | * |
228 | 228 | * @return ODataPropertyContent |
229 | 229 | */ |
230 | - public function writeTopLevelPrimitive(QueryResult &$primitiveValue, ResourceProperty &$resourceProperty = null) |
|
230 | + public function writeTopLevelPrimitive(QueryResult & $primitiveValue, ResourceProperty & $resourceProperty = null) |
|
231 | 231 | { |
232 | 232 | assert(null !== $resourceProperty, 'Resource property must not be null'); |
233 | 233 | $result = new ODataPropertyContent(); |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * @param $result |
308 | 308 | * @return ODataBagContent|null |
309 | 309 | */ |
310 | - protected function writeBagValue(ResourceType &$resourceType, $result) |
|
310 | + protected function writeBagValue(ResourceType & $resourceType, $result) |
|
311 | 311 | { |
312 | 312 | assert(null == $result || is_array($result), 'Bag parameter must be null or array'); |
313 | 313 | $typeKind = $resourceType->getResourceTypeKind(); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * @param string|null $propertyName |
341 | 341 | * @return ODataPropertyContent |
342 | 342 | */ |
343 | - protected function writeComplexValue(ResourceType &$resourceType, &$result, $propertyName = null) |
|
343 | + protected function writeComplexValue(ResourceType & $resourceType, &$result, $propertyName = null) |
|
344 | 344 | { |
345 | 345 | assert(is_object($result), 'Supplied $customObject must be an object'); |
346 | 346 | |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | $skipToken = $internalOrderByInfo->buildSkipTokenValue($lastObject); |
448 | 448 | assert(!is_null($skipToken), '!is_null($skipToken)'); |
449 | 449 | $token = (1 < $numSegments) ? '$skiptoken=' : '$skip='; |
450 | - $skipToken = '?'.$queryParameterString.$token.$skipToken; |
|
450 | + $skipToken = '?' . $queryParameterString . $token . $skipToken; |
|
451 | 451 | |
452 | 452 | return $skipToken; |
453 | 453 | } |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * |
564 | 564 | * @return string |
565 | 565 | */ |
566 | - private function primitiveToString(IType &$type, $primitiveValue) |
|
566 | + private function primitiveToString(IType & $type, $primitiveValue) |
|
567 | 567 | { |
568 | 568 | if ($type instanceof Boolean) { |
569 | 569 | $stringValue = (true === $primitiveValue) ? 'true' : 'false'; |
@@ -588,6 +588,6 @@ discard block |
||
588 | 588 | if (28 < $resourceKind) { |
589 | 589 | return false; |
590 | 590 | } |
591 | - return 0 == ($resourceKind % 4); |
|
591 | + return 0 == ($resourceKind%4); |
|
592 | 592 | } |
593 | 593 | } |