Completed
Pull Request — master (#131)
by Alex
10:57
created
src/POData/OperationContext/ServiceHost.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                     );
224 224
                 }
225 225
 
226
-                $builtServiceUri = $requestUriScheme .'://' . $this->getAbsoluteRequestUri()->getHost();
226
+                $builtServiceUri = $requestUriScheme . '://' . $this->getAbsoluteRequestUri()->getHost();
227 227
 
228 228
                 if (($requestUriScheme == 'http' && $requestUriPort != '80') ||
229 229
                     ($requestUriScheme == 'https' && $requestUriPort != '443')
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      */
427 427
     public function getRequestAccept()
428 428
     {
429
-        $result= $this->getOperationContext()->incomingRequest()
429
+        $result = $this->getOperationContext()->incomingRequest()
430 430
             ->getRequestHeader(ODataConstants::HTTPREQUEST_HEADER_ACCEPT);
431 431
         assert(null == $result || is_string($result));
432 432
         return $result;
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             $this->getOperationContext()->outgoingResponse()->setContentLength($value);
529 529
         } else {
530 530
             throw ODataException::notAcceptableError(
531
-                'ContentLength: '.$value.' is invalid'
531
+                'ContentLength: ' . $value . ' is invalid'
532 532
             );
533 533
         }
534 534
     }
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
     public function setResponseStatusCode($value)
574 574
     {
575 575
         if (!is_numeric($value)) {
576
-            $msg = 'Invalid, non-numeric, status code: '.$value;
576
+            $msg = 'Invalid, non-numeric, status code: ' . $value;
577 577
             throw ODataException::createInternalServerError($msg);
578 578
         }
579 579
         $floor = floor($value/100);
Please login to merge, or discard this patch.