@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | * @throws InvalidOperationException If this function invoked with non-navigation |
| 195 | 195 | * property instance |
| 196 | 196 | */ |
| 197 | - private function pushSegmentForNavigationProperty(ResourceProperty &$resourceProperty) |
|
| 197 | + private function pushSegmentForNavigationProperty(ResourceProperty & $resourceProperty) |
|
| 198 | 198 | { |
| 199 | 199 | if ($resourceProperty->getTypeKind() == ResourceTypeKind::ENTITY) { |
| 200 | 200 | assert(!empty($this->getStack()->getSegmentNames()), '!is_empty($this->getStack()->getSegmentNames())'); |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | * |
| 280 | 280 | * @return bool true if the segment was push, false otherwise |
| 281 | 281 | */ |
| 282 | - private function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 282 | + private function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 283 | 283 | { |
| 284 | 284 | $this->getStack()->pushSegment($segmentName, $resourceSetWrapper); |
| 285 | 285 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @return bool true if the segment was push, false otherwise |
| 52 | 52 | */ |
| 53 | - public function pushSegment($segmentName, ResourceSetWrapper &$resourceSetWrapper) |
|
| 53 | + public function pushSegment($segmentName, ResourceSetWrapper & $resourceSetWrapper) |
|
| 54 | 54 | { |
| 55 | 55 | $rootProjectionNode = $this->getRequest()->getRootProjectionNode(); |
| 56 | 56 | if (!is_null($rootProjectionNode) && $rootProjectionNode->isExpansionSpecified()) { |
@@ -382,7 +382,7 @@ |
||
| 382 | 382 | $segment->setResult($entityInstance); |
| 383 | 383 | } else { |
| 384 | 384 | $skip = (null == $this->getRequest()) ? 0 : $this->getRequest()->getSkipCount(); |
| 385 | - $skip = (null == $skip) ? 0 :$skip; |
|
| 385 | + $skip = (null == $skip) ? 0 : $skip; |
|
| 386 | 386 | $queryResult = $this->getProviders()->getResourceSet( |
| 387 | 387 | $this->getRequest()->queryType, |
| 388 | 388 | $segment->getTargetResourceSetWrapper(), |
@@ -406,9 +406,9 @@ |
||
| 406 | 406 | } else { |
| 407 | 407 | $code = null; |
| 408 | 408 | $funcList = $this->_comparisonFunctions; |
| 409 | - $BigFunc = function ($object1, $object2) use ($funcList) { |
|
| 409 | + $BigFunc = function($object1, $object2) use ($funcList) { |
|
| 410 | 410 | foreach ($funcList as $f) { |
| 411 | - $ret = $f($object1,$object2); |
|
| 411 | + $ret = $f($object1, $object2); |
|
| 412 | 412 | if ($ret != 0) { |
| 413 | 413 | return $ret; |
| 414 | 414 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $accessor2 = null; |
| 107 | 107 | $a = $this->_isAscending ? 1 : -1; |
| 108 | 108 | |
| 109 | - $retVal = function ($object1, $object2) use ($ancestors, $a) { |
|
| 109 | + $retVal = function($object1, $object2) use ($ancestors, $a) { |
|
| 110 | 110 | |
| 111 | 111 | $flag1 = is_null($object1); |
| 112 | 112 | $flag2 = is_null($object2); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | return $a*1; |
| 143 | 143 | } |
| 144 | 144 | $type = $this->resourceProperty->getInstanceType(); |
| 145 | - $result = null; |
|
| 145 | + $result = null; |
|
| 146 | 146 | if ($type instanceof DateTime) { |
| 147 | 147 | $result = strtotime($accessor1) - strtotime($accessor2); |
| 148 | 148 | } elseif ($type instanceof StringType) { |
@@ -151,11 +151,11 @@ discard block |
||
| 151 | 151 | $result = strcmp($accessor1, $accessor2); |
| 152 | 152 | } else { |
| 153 | 153 | $delta = $accessor1 - $accessor2; |
| 154 | - $result (0 == $delta) ? 0 : $delta / abs($delta); |
|
| 154 | + $result(0 == $delta) ? 0 : $delta/abs($delta); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | return $a*$result; |
| 158 | 158 | }; |
| 159 | - return $retVal ; |
|
| 159 | + return $retVal; |
|
| 160 | 160 | } |
| 161 | 161 | } |