Completed
Push — master ( 237339...6e86f3 )
by Neomerx
02:23
created
src/Analyzer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
     /**
377 377
      * @param RequestInterface $request
378 378
      *
379
-     * @return null|string
379
+     * @return string
380 380
      */
381 381
     private function getRequestHostHeader(RequestInterface $request)
382 382
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         // #6.2.3
210 210
         $requestMethod = $request->getHeader(CorsRequestHeaders::METHOD);
211 211
         if (empty($requestMethod) === true) {
212
-            $this->logDebug('Request is not CORS (header ' . CorsRequestHeaders::METHOD . ' is not specified).');
212
+            $this->logDebug('Request is not CORS (header '.CorsRequestHeaders::METHOD.' is not specified).');
213 213
             return $this->createResult(AnalysisResultInterface::TYPE_REQUEST_OUT_OF_CORS_SCOPE);
214 214
         } else {
215 215
             $requestMethod = $requestMethod[0];
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
             // after explode header names might have spaces in the beginnings and ends...
281 281
             $requestHeaders = explode(CorsRequestHeaders::HEADERS_SEPARATOR, $requestHeaders[0]);
282 282
             // ... so trim the spaces and convert values to lower case
283
-            $requestHeaders = array_map(function ($headerName) {
283
+            $requestHeaders = array_map(function($headerName) {
284 284
                 return strtolower(trim($headerName));
285 285
             }, $requestHeaders);
286 286
         }
Please login to merge, or discard this patch.
src/Http/ParsedUrl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@
 block discarded – undo
105 105
     public function getOrigin()
106 106
     {
107 107
         if ($this->urlAsString === null) {
108
-            $url = $this->scheme === null ? '' : $this->scheme . ':';
109
-            $url .= $this->host === null  ? '' : '//' . $this->host;
110
-            $url .= $this->port === self::DEFAULT_PORT ? '' : ':' . $this->port;
108
+            $url = $this->scheme === null ? '' : $this->scheme.':';
109
+            $url .= $this->host === null ? '' : '//'.$this->host;
110
+            $url .= $this->port === self::DEFAULT_PORT ? '' : ':'.$this->port;
111 111
 
112 112
             $this->urlAsString = $url;
113 113
         }
Please login to merge, or discard this patch.