@@ -143,14 +143,11 @@ discard block |
||
| 143 | 143 | $requestMethod = $operationContext->incomingRequest()->getMethod(); |
| 144 | 144 | if ($requestMethod == HTTPRequestMethod::GET()) { |
| 145 | 145 | $this->executeGet(); |
| 146 | - } |
|
| 147 | - elseif ($requestMethod == HTTPRequestMethod::PUT()) { |
|
| 146 | + } elseif ($requestMethod == HTTPRequestMethod::PUT()) { |
|
| 148 | 147 | $this->executePut(); |
| 149 | - } |
|
| 150 | - elseif ($requestMethod == HTTPRequestMethod::POST()) { |
|
| 148 | + } elseif ($requestMethod == HTTPRequestMethod::POST()) { |
|
| 151 | 149 | $this->executePost(); |
| 152 | - } |
|
| 153 | - else { |
|
| 150 | + } else { |
|
| 154 | 151 | throw ODataException::createNotImplementedError(Messages::unsupportedMethod($requestMethod)); |
| 155 | 152 | } |
| 156 | 153 | } |
@@ -462,7 +459,9 @@ discard block |
||
| 462 | 459 | if (!empty($result)) { |
| 463 | 460 | $top = $this->request->getTopCount(); |
| 464 | 461 | $skip = $this->request->getSkipCount(); |
| 465 | - if(is_null($skip)) $skip = 0; |
|
| 462 | + if(is_null($skip)) { |
|
| 463 | + $skip = 0; |
|
| 464 | + } |
|
| 466 | 465 | |
| 467 | 466 | $result = array_slice($result, $skip, $top); |
| 468 | 467 | } |