Completed
Push — master ( f1c3b7...bffd1d )
by Bálint
10:19
created
src/POData/UriProcessor/UriProcessor.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -143,14 +143,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.