@@ -501,10 +501,10 @@ |
||
501 | 501 | { |
502 | 502 | $queryParameterString = null; |
503 | 503 | foreach ([ODataConstants::HTTPQUERY_STRING_FILTER, |
504 | - ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
505 | - ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
506 | - ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
507 | - ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
504 | + ODataConstants::HTTPQUERY_STRING_EXPAND, |
|
505 | + ODataConstants::HTTPQUERY_STRING_ORDERBY, |
|
506 | + ODataConstants::HTTPQUERY_STRING_INLINECOUNT, |
|
507 | + ODataConstants::HTTPQUERY_STRING_SELECT, ] as $queryOption) { |
|
508 | 508 | $value = $this->getService()->getHost()->getQueryStringItem($queryOption); |
509 | 509 | if (!is_null($value)) { |
510 | 510 | if (!is_null($queryParameterString)) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * |
98 | 98 | * @return ODataFeed |
99 | 99 | */ |
100 | - public function writeTopLevelElements(QueryResult &$entryObjects) |
|
100 | + public function writeTopLevelElements(QueryResult & $entryObjects) |
|
101 | 101 | { |
102 | 102 | // TODO: Implement writeTopLevelElements() method. |
103 | 103 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @return ODataPropertyContent |
173 | 173 | */ |
174 | - public function writeTopLevelComplexObject(QueryResult &$complexValue, $propertyName, ResourceType &$resourceType) |
|
174 | + public function writeTopLevelComplexObject(QueryResult & $complexValue, $propertyName, ResourceType & $resourceType) |
|
175 | 175 | { |
176 | 176 | // TODO: Implement writeTopLevelComplexObject() method. |
177 | 177 | } |
@@ -185,14 +185,14 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @return ODataPropertyContent |
187 | 187 | */ |
188 | - public function writeTopLevelBagObject(QueryResult &$bagValue, $propertyName, ResourceType &$resourceType) |
|
188 | + public function writeTopLevelBagObject(QueryResult & $bagValue, $propertyName, ResourceType & $resourceType) |
|
189 | 189 | { |
190 | 190 | $result = $bagValue->results; |
191 | 191 | |
192 | 192 | $propertyContent = new ODataPropertyContent(); |
193 | 193 | $odataProperty = new ODataProperty(); |
194 | 194 | $odataProperty->name = $propertyName; |
195 | - $odataProperty->typeName = 'Collection('.$resourceType->getFullName().')'; |
|
195 | + $odataProperty->typeName = 'Collection(' . $resourceType->getFullName() . ')'; |
|
196 | 196 | $odataProperty->value = $this->writeBagValue($resourceType, $result); |
197 | 197 | |
198 | 198 | $propertyContent->properties[] = $odataProperty; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @return ODataPropertyContent |
209 | 209 | */ |
210 | - public function writeTopLevelPrimitive(QueryResult &$primitiveValue, ResourceProperty &$resourceProperty = null) |
|
210 | + public function writeTopLevelPrimitive(QueryResult & $primitiveValue, ResourceProperty & $resourceProperty = null) |
|
211 | 211 | { |
212 | 212 | assert(null !== $resourceProperty, 'Resource property must not be null'); |
213 | 213 | $result = new ODataPropertyContent(); |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * @param $result |
288 | 288 | * @return ODataBagContent|null |
289 | 289 | */ |
290 | - protected function writeBagValue(ResourceType &$resourceType, $result) |
|
290 | + protected function writeBagValue(ResourceType & $resourceType, $result) |
|
291 | 291 | { |
292 | 292 | assert(null == $result || is_array($result), 'Bag parameter must be null or array'); |
293 | 293 | $typeKind = $resourceType->getResourceTypeKind(); |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * @param string|null $propertyName |
321 | 321 | * @return ODataPropertyContent |
322 | 322 | */ |
323 | - protected function writeComplexValue(ResourceType &$resourceType, &$result, $propertyName = null) |
|
323 | + protected function writeComplexValue(ResourceType & $resourceType, &$result, $propertyName = null) |
|
324 | 324 | { |
325 | 325 | assert(is_object($result), 'Supplied $customObject must be an object'); |
326 | 326 | |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | $skipToken = $internalOrderByInfo->buildSkipTokenValue($lastObject); |
429 | 429 | assert(!is_null($skipToken), '!is_null($skipToken)'); |
430 | 430 | $token = (1 < $numSegments) ? '$skiptoken=' : '$skip='; |
431 | - $skipToken = '?'.$queryParameterString.$token.$skipToken; |
|
431 | + $skipToken = '?' . $queryParameterString . $token . $skipToken; |
|
432 | 432 | |
433 | 433 | return $skipToken; |
434 | 434 | } |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | * |
545 | 545 | * @return string |
546 | 546 | */ |
547 | - private function primitiveToString(IType &$type, $primitiveValue) |
|
547 | + private function primitiveToString(IType & $type, $primitiveValue) |
|
548 | 548 | { |
549 | 549 | if ($type instanceof Boolean) { |
550 | 550 | $stringValue = (true === $primitiveValue) ? 'true' : 'false'; |
@@ -569,6 +569,6 @@ discard block |
||
569 | 569 | if (28 < $resourceKind) { |
570 | 570 | return false; |
571 | 571 | } |
572 | - return 0 == ($resourceKind % 4); |
|
572 | + return 0 == ($resourceKind%4); |
|
573 | 573 | } |
574 | 574 | } |