@@ -281,14 +281,14 @@ |
||
| 281 | 281 | protected function writeNextPageLink(ODataLink $nextPageLinkUri = null) |
| 282 | 282 | { |
| 283 | 283 | |
| 284 | - // "__next" : uri |
|
| 285 | - if ($nextPageLinkUri != null) { |
|
| 286 | - $this->_writer |
|
| 287 | - ->writeName(ODataConstants::JSON_NEXT_STRING) |
|
| 288 | - ->writeValue($nextPageLinkUri->url); |
|
| 289 | - } |
|
| 290 | - |
|
| 291 | - return $this; |
|
| 284 | + // "__next" : uri |
|
| 285 | + if ($nextPageLinkUri != null) { |
|
| 286 | + $this->_writer |
|
| 287 | + ->writeName(ODataConstants::JSON_NEXT_STRING) |
|
| 288 | + ->writeValue($nextPageLinkUri->url); |
|
| 289 | + } |
|
| 290 | + |
|
| 291 | + return $this; |
|
| 292 | 292 | |
| 293 | 293 | } |
| 294 | 294 | |
@@ -160,7 +160,9 @@ |
||
| 160 | 160 | */ |
| 161 | 161 | protected function getPropertyValue($entity, ResourceType $resourceType, ResourceProperty $resourceProperty) |
| 162 | 162 | { |
| 163 | - if (is_array($entity)) return $entity[$resourceProperty->getName()]; |
|
| 163 | + if (is_array($entity)) { |
|
| 164 | + return $entity[$resourceProperty->getName()]; |
|
| 165 | + } |
|
| 164 | 166 | |
| 165 | 167 | return $entity->{$resourceProperty->getName()}; |
| 166 | 168 | } |
@@ -719,8 +719,11 @@ |
||
| 719 | 719 | $projectedProperty |
| 720 | 720 | ); |
| 721 | 721 | |
| 722 | - if (is_array($entry)) $entry[$expandedPropertyName] = $result1; |
|
| 723 | - else $expandedPropertyReflection->setValue($entry, $result1); |
|
| 722 | + if (is_array($entry)) { |
|
| 723 | + $entry[$expandedPropertyName] = $result1; |
|
| 724 | + } else { |
|
| 725 | + $expandedPropertyReflection->setValue($entry, $result1); |
|
| 726 | + } |
|
| 724 | 727 | |
| 725 | 728 | if (!is_null($result1)) { |
| 726 | 729 | $projectedProperty3 = $expandedProjectionNode->getResourceProperty(); |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | public function convertToOData($value) |
| 103 | 103 | { |
| 104 | - if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 104 | + if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 105 | 105 | return 'datetime\'' . urlencode($value) . '\''; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -101,7 +101,9 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | public function convertToOData($value) |
| 103 | 103 | { |
| 104 | - if ($value instanceof DateTimeInterface) return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 104 | + if ($value instanceof DateTimeInterface) { |
|
| 105 | + return 'datetime\'' . urlencode($value->format(DateTimeInterface::ATOM)) . '\''; |
|
| 106 | + } |
|
| 105 | 107 | return 'datetime\'' . urlencode($value) . '\''; |
| 106 | 108 | } |
| 107 | 109 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * or in case of any version incompatibility. |
| 34 | 34 | */ |
| 35 | 35 | public static function process(IService $service) |
| 36 | - { |
|
| 36 | + { |
|
| 37 | 37 | $host = $service->getHost(); |
| 38 | 38 | $fullAbsoluteRequestUri = $host->getFullAbsoluteRequestUri(); |
| 39 | 39 | $absoluteRequestUri = $host->getAbsoluteRequestUri(); |
@@ -357,5 +357,5 @@ |
||
| 357 | 357 | return $operator . self::OPEN_BRACKET . $child . self::CLOSE_BRACKET; |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | - public function clear() {} |
|
| 360 | + public function clear() {} |
|
| 361 | 361 | } |
| 362 | 362 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function getIteratorName(); |
| 25 | 25 | |
| 26 | - public function clear(); |
|
| 26 | + public function clear(); |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * call-back for setting the resource type. |
@@ -157,14 +157,14 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | public function getCustomProperties($entryObject); |
| 159 | 159 | |
| 160 | - public function postResource( |
|
| 160 | + public function postResource( |
|
| 161 | 161 | ResourceSet $resourceSet, |
| 162 | 162 | RequestDescription $request, |
| 163 | 163 | $data |
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | - public function putResource( |
|
| 167 | - ResourceSet $resourceSet, |
|
| 166 | + public function putResource( |
|
| 167 | + ResourceSet $resourceSet, |
|
| 168 | 168 | RequestDescription $request, |
| 169 | 169 | KeyDescriptor $keyDescriptor, |
| 170 | 170 | $data, |
@@ -172,8 +172,8 @@ discard block |
||
| 172 | 172 | $expand |
| 173 | 173 | ); |
| 174 | 174 | |
| 175 | - public function deleteResource( |
|
| 176 | - ResourceSet $resourceSet, |
|
| 175 | + public function deleteResource( |
|
| 176 | + ResourceSet $resourceSet, |
|
| 177 | 177 | RequestDescription $request, |
| 178 | 178 | $keyDescriptor |
| 179 | 179 | ); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private $tabString; |
| 34 | 34 | |
| 35 | - private $_writer; |
|
| 35 | + private $_writer; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Creates a new instance of IndentedTextWriter |