@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $this->loadStackIfEmpty(); |
112 | 112 | |
113 | 113 | $stackCount = count($this->lightStack); |
114 | - $topOfStack = $this->lightStack[$stackCount-1]; |
|
114 | + $topOfStack = $this->lightStack[$stackCount - 1]; |
|
115 | 115 | $resourceType = $this->getService()->getProvidersWrapper()->resolveResourceType($topOfStack[0]); |
116 | 116 | $rawProp = $resourceType->getAllProperties(); |
117 | 117 | $relProp = []; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE' |
158 | 158 | ); |
159 | 159 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
160 | - $propType = 'application/atom+xml;type='.$propTail; |
|
160 | + $propType = 'application/atom+xml;type=' . $propTail; |
|
161 | 161 | $propName = $prop->getName(); |
162 | 162 | $nuLink->title = $propName; |
163 | 163 | $nuLink->name = ODataConstants::ODATA_RELATED_NAMESPACE . $propName; |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * |
201 | 201 | * @return ODataFeed |
202 | 202 | */ |
203 | - public function writeTopLevelElements(QueryResult &$entryObjects) |
|
203 | + public function writeTopLevelElements(QueryResult & $entryObjects) |
|
204 | 204 | { |
205 | 205 | // TODO: Implement writeTopLevelElements() method. |
206 | 206 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * |
275 | 275 | * @return ODataPropertyContent |
276 | 276 | */ |
277 | - public function writeTopLevelComplexObject(QueryResult &$complexValue, $propertyName, ResourceType &$resourceType) |
|
277 | + public function writeTopLevelComplexObject(QueryResult & $complexValue, $propertyName, ResourceType & $resourceType) |
|
278 | 278 | { |
279 | 279 | $result = $complexValue->results; |
280 | 280 | |
@@ -302,14 +302,14 @@ discard block |
||
302 | 302 | * |
303 | 303 | * @return ODataPropertyContent |
304 | 304 | */ |
305 | - public function writeTopLevelBagObject(QueryResult &$bagValue, $propertyName, ResourceType &$resourceType) |
|
305 | + public function writeTopLevelBagObject(QueryResult & $bagValue, $propertyName, ResourceType & $resourceType) |
|
306 | 306 | { |
307 | 307 | $result = $bagValue->results; |
308 | 308 | |
309 | 309 | $propertyContent = new ODataPropertyContent(); |
310 | 310 | $odataProperty = new ODataProperty(); |
311 | 311 | $odataProperty->name = $propertyName; |
312 | - $odataProperty->typeName = 'Collection('.$resourceType->getFullName().')'; |
|
312 | + $odataProperty->typeName = 'Collection(' . $resourceType->getFullName() . ')'; |
|
313 | 313 | $odataProperty->value = $this->writeBagValue($resourceType, $result); |
314 | 314 | |
315 | 315 | $propertyContent->properties[] = $odataProperty; |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * |
325 | 325 | * @return ODataPropertyContent |
326 | 326 | */ |
327 | - public function writeTopLevelPrimitive(QueryResult &$primitiveValue, ResourceProperty &$resourceProperty = null) |
|
327 | + public function writeTopLevelPrimitive(QueryResult & $primitiveValue, ResourceProperty & $resourceProperty = null) |
|
328 | 328 | { |
329 | 329 | assert(null !== $resourceProperty, 'Resource property must not be null'); |
330 | 330 | $result = new ODataPropertyContent(); |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * @param $result |
407 | 407 | * @return ODataBagContent|null |
408 | 408 | */ |
409 | - protected function writeBagValue(ResourceType &$resourceType, $result) |
|
409 | + protected function writeBagValue(ResourceType & $resourceType, $result) |
|
410 | 410 | { |
411 | 411 | assert(null === $result || is_array($result), 'Bag parameter must be null or array'); |
412 | 412 | $typeKind = $resourceType->getResourceTypeKind(); |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | * @param string|null $propertyName |
440 | 440 | * @return ODataPropertyContent |
441 | 441 | */ |
442 | - protected function writeComplexValue(ResourceType &$resourceType, &$result, $propertyName = null) |
|
442 | + protected function writeComplexValue(ResourceType & $resourceType, &$result, $propertyName = null) |
|
443 | 443 | { |
444 | 444 | assert(is_object($result), 'Supplied $customObject must be an object'); |
445 | 445 | |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | $skipToken = $internalOrderByInfo->buildSkipTokenValue($lastObject); |
589 | 589 | assert(!is_null($skipToken), '!is_null($skipToken)'); |
590 | 590 | $token = (1 < $numSegments) ? '$skiptoken=' : '$skip='; |
591 | - $skipToken = '?'.$queryParameterString.$token.$skipToken; |
|
591 | + $skipToken = '?' . $queryParameterString . $token . $skipToken; |
|
592 | 592 | |
593 | 593 | return $skipToken; |
594 | 594 | } |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | * |
791 | 791 | * @return string |
792 | 792 | */ |
793 | - private function primitiveToString(IType &$type, $primitiveValue) |
|
793 | + private function primitiveToString(IType & $type, $primitiveValue) |
|
794 | 794 | { |
795 | 795 | if ($type instanceof Boolean) { |
796 | 796 | $stringValue = (true === $primitiveValue) ? 'true' : 'false'; |
@@ -815,6 +815,6 @@ discard block |
||
815 | 815 | if (28 < $resourceKind) { |
816 | 816 | return false; |
817 | 817 | } |
818 | - return 0 == ($resourceKind % 4); |
|
818 | + return 0 == ($resourceKind%4); |
|
819 | 819 | } |
820 | 820 | } |