@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | $this->loadStackIfEmpty(); |
120 | 120 | |
121 | 121 | $stackCount = count($this->lightStack); |
122 | - $topOfStack = $this->lightStack[$stackCount-1]; |
|
122 | + $topOfStack = $this->lightStack[$stackCount - 1]; |
|
123 | 123 | $resourceType = $this->getService()->getProvidersWrapper()->resolveResourceType($topOfStack[0]); |
124 | 124 | assert($resourceType instanceof ResourceType, get_class($resourceType)); |
125 | 125 | $rawProp = $resourceType->getAllProperties(); |
@@ -141,8 +141,8 @@ discard block |
||
141 | 141 | $nonRelCount = count($nonRelProp); |
142 | 142 | assert( |
143 | 143 | $rawCount == $relCount + $nonRelCount, |
144 | - 'Raw property count '.$rawCount.', does not equal sum of relProp count, '.$relCount |
|
145 | - .', and nonRelPropCount,'.$nonRelCount |
|
144 | + 'Raw property count ' . $rawCount . ', does not equal sum of relProp count, ' . $relCount |
|
145 | + .', and nonRelPropCount,' . $nonRelCount |
|
146 | 146 | ); |
147 | 147 | |
148 | 148 | // now mask off against projNodes |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | .' $propKind != ResourcePropertyKind::RESOURCE_REFERENCE' |
190 | 190 | ); |
191 | 191 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
192 | - $propType = 'application/atom+xml;type='.$propTail; |
|
192 | + $propType = 'application/atom+xml;type=' . $propTail; |
|
193 | 193 | $propName = $prop->getName(); |
194 | 194 | $nuLink->title = $propName; |
195 | 195 | $nuLink->name = ODataConstants::ODATA_RELATED_NAMESPACE . $propName; |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | * |
237 | 237 | * @return ODataFeed |
238 | 238 | */ |
239 | - public function writeTopLevelElements(QueryResult &$entryObjects) |
|
239 | + public function writeTopLevelElements(QueryResult & $entryObjects) |
|
240 | 240 | { |
241 | 241 | assert(is_array($entryObjects->results), '!is_array($entryObjects->results)'); |
242 | 242 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * |
360 | 360 | * @return ODataPropertyContent |
361 | 361 | */ |
362 | - public function writeTopLevelComplexObject(QueryResult &$complexValue, $propertyName, ResourceType &$resourceType) |
|
362 | + public function writeTopLevelComplexObject(QueryResult & $complexValue, $propertyName, ResourceType & $resourceType) |
|
363 | 363 | { |
364 | 364 | $result = $complexValue->results; |
365 | 365 | |
@@ -387,14 +387,14 @@ discard block |
||
387 | 387 | * |
388 | 388 | * @return ODataPropertyContent |
389 | 389 | */ |
390 | - public function writeTopLevelBagObject(QueryResult &$bagValue, $propertyName, ResourceType &$resourceType) |
|
390 | + public function writeTopLevelBagObject(QueryResult & $bagValue, $propertyName, ResourceType & $resourceType) |
|
391 | 391 | { |
392 | 392 | $result = $bagValue->results; |
393 | 393 | |
394 | 394 | $propertyContent = new ODataPropertyContent(); |
395 | 395 | $odataProperty = new ODataProperty(); |
396 | 396 | $odataProperty->name = $propertyName; |
397 | - $odataProperty->typeName = 'Collection('.$resourceType->getFullName().')'; |
|
397 | + $odataProperty->typeName = 'Collection(' . $resourceType->getFullName() . ')'; |
|
398 | 398 | $odataProperty->value = $this->writeBagValue($resourceType, $result); |
399 | 399 | |
400 | 400 | $propertyContent->properties[$propertyName] = $odataProperty; |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | * |
410 | 410 | * @return ODataPropertyContent |
411 | 411 | */ |
412 | - public function writeTopLevelPrimitive(QueryResult &$primitiveValue, ResourceProperty &$resourceProperty = null) |
|
412 | + public function writeTopLevelPrimitive(QueryResult & $primitiveValue, ResourceProperty & $resourceProperty = null) |
|
413 | 413 | { |
414 | 414 | assert(null !== $resourceProperty, 'Resource property must not be null'); |
415 | 415 | $result = new ODataPropertyContent(); |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | * @param $result |
502 | 502 | * @return ODataBagContent|null |
503 | 503 | */ |
504 | - protected function writeBagValue(ResourceType &$resourceType, $result) |
|
504 | + protected function writeBagValue(ResourceType & $resourceType, $result) |
|
505 | 505 | { |
506 | 506 | assert(null === $result || is_array($result), 'Bag parameter must be null or array'); |
507 | 507 | $typeKind = $resourceType->getResourceTypeKind(); |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | * @param string|null $propertyName |
535 | 535 | * @return ODataPropertyContent |
536 | 536 | */ |
537 | - protected function writeComplexValue(ResourceType &$resourceType, &$result, $propertyName = null) |
|
537 | + protected function writeComplexValue(ResourceType & $resourceType, &$result, $propertyName = null) |
|
538 | 538 | { |
539 | 539 | assert(is_object($result), 'Supplied $customObject must be an object'); |
540 | 540 | |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | $skipToken = $internalOrderByInfo->buildSkipTokenValue($lastObject); |
689 | 689 | assert(null !== $skipToken, '!is_null($skipToken)'); |
690 | 690 | $token = (1 < $numSegments) ? '$skiptoken=' : '$skip='; |
691 | - $skipToken = '?'.$queryParameterString.$token.$skipToken; |
|
691 | + $skipToken = '?' . $queryParameterString . $token . $skipToken; |
|
692 | 692 | |
693 | 693 | return $skipToken; |
694 | 694 | } |
@@ -938,7 +938,7 @@ discard block |
||
938 | 938 | * |
939 | 939 | * @return string |
940 | 940 | */ |
941 | - private function primitiveToString(IType &$type, $primitiveValue) |
|
941 | + private function primitiveToString(IType & $type, $primitiveValue) |
|
942 | 942 | { |
943 | 943 | if ($type instanceof Boolean) { |
944 | 944 | $stringValue = (true === $primitiveValue) ? 'true' : 'false'; |
@@ -963,6 +963,6 @@ discard block |
||
963 | 963 | if (28 < $resourceKind) { |
964 | 964 | return false; |
965 | 965 | } |
966 | - return 0 == ($resourceKind % 4); |
|
966 | + return 0 == ($resourceKind%4); |
|
967 | 967 | } |
968 | 968 | } |
@@ -76,6 +76,6 @@ |
||
76 | 76 | $this->eTag = $eTag; |
77 | 77 | $this->name = $name; |
78 | 78 | $this->srcLink = $srcLink; |
79 | - $this->rel = (null !== $rel) ? $rel : self::MEDIARESOURCE_BASE.$name; |
|
79 | + $this->rel = (null !== $rel) ? $rel : self::MEDIARESOURCE_BASE . $name; |
|
80 | 80 | } |
81 | 81 | } |