@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $this->isBaseWritten = true; |
| 131 | 131 | |
| 132 | 132 | $stackCount = count($this->lightStack); |
| 133 | - $topOfStack = $this->lightStack[$stackCount-1]; |
|
| 133 | + $topOfStack = $this->lightStack[$stackCount - 1]; |
|
| 134 | 134 | $resourceType = $this->getService()->getProvidersWrapper()->resolveResourceType($topOfStack['type']); |
| 135 | 135 | assert($resourceType instanceof ResourceType, get_class($resourceType)); |
| 136 | 136 | $rawProp = $resourceType->getAllProperties(); |
@@ -152,8 +152,8 @@ discard block |
||
| 152 | 152 | $nonRelCount = count($nonRelProp); |
| 153 | 153 | assert( |
| 154 | 154 | $rawCount == $relCount + $nonRelCount, |
| 155 | - 'Raw property count '.$rawCount.', does not equal sum of relProp count, '.$relCount |
|
| 156 | - .', and nonRelPropCount,'.$nonRelCount |
|
| 155 | + 'Raw property count ' . $rawCount . ', does not equal sum of relProp count, ' . $relCount |
|
| 156 | + .', and nonRelPropCount,' . $nonRelCount |
|
| 157 | 157 | ); |
| 158 | 158 | |
| 159 | 159 | // now mask off against projNodes |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | ); |
| 202 | 202 | $propTail = ResourcePropertyKind::RESOURCE_REFERENCE == $propKind ? 'entry' : 'feed'; |
| 203 | 203 | $nuLink->isCollection = 'feed' === $propTail; |
| 204 | - $propType = 'application/atom+xml;type='.$propTail; |
|
| 204 | + $propType = 'application/atom+xml;type=' . $propTail; |
|
| 205 | 205 | $propName = $prop->getName(); |
| 206 | 206 | $nuLink->title = $propName; |
| 207 | 207 | $nuLink->name = ODataConstants::ODATA_RELATED_NAMESPACE . $propName; |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | $newCount == $stackCount, |
| 243 | 243 | 'Should have ' . $stackCount . 'elements in stack, have ' . $newCount . 'elements' |
| 244 | 244 | ); |
| 245 | - $this->lightStack[$newCount-1]['count']--; |
|
| 246 | - if (0 == $this->lightStack[$newCount-1]['count']) { |
|
| 245 | + $this->lightStack[$newCount - 1]['count']--; |
|
| 246 | + if (0 == $this->lightStack[$newCount - 1]['count']) { |
|
| 247 | 247 | array_pop($this->lightStack); |
| 248 | 248 | } |
| 249 | 249 | return $odata; |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | $propertyContent = new ODataPropertyContent(); |
| 430 | 430 | $odataProperty = new ODataProperty(); |
| 431 | 431 | $odataProperty->name = $propertyName; |
| 432 | - $odataProperty->typeName = 'Collection('.$resourceType->getFullName().')'; |
|
| 432 | + $odataProperty->typeName = 'Collection(' . $resourceType->getFullName() . ')'; |
|
| 433 | 433 | $odataProperty->value = $this->writeBagValue($resourceType, $result); |
| 434 | 434 | |
| 435 | 435 | $propertyContent->properties[$propertyName] = $odataProperty; |
@@ -724,7 +724,7 @@ discard block |
||
| 724 | 724 | $skipToken = $internalOrderByInfo->buildSkipTokenValue($lastObject); |
| 725 | 725 | assert(null !== $skipToken, '!is_null($skipToken)'); |
| 726 | 726 | $token = (1 < $numSegments) ? '$skiptoken=' : '$skip='; |
| 727 | - $skipToken = '?'.$queryParameterString.$token.$skipToken; |
|
| 727 | + $skipToken = '?' . $queryParameterString . $token . $skipToken; |
|
| 728 | 728 | |
| 729 | 729 | return $skipToken; |
| 730 | 730 | } |
@@ -1012,6 +1012,6 @@ discard block |
||
| 1012 | 1012 | if (28 < $resourceKind) { |
| 1013 | 1013 | return false; |
| 1014 | 1014 | } |
| 1015 | - return 0 == ($resourceKind % 4); |
|
| 1015 | + return 0 == ($resourceKind%4); |
|
| 1016 | 1016 | } |
| 1017 | 1017 | } |