Completed
Branch develop (004e03)
by Neomerx
04:43
created
src/Analyzer.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
     /**
427 427
      * @param RequestInterface $request
428 428
      *
429
-     * @return null|string
429
+     * @return string|false
430 430
      */
431 431
     private function getRequestHostHeader(RequestInterface $request): ?string
432 432
     {
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
 
214 214
             return $this->createResult(AnalysisResultInterface::TYPE_REQUEST_OUT_OF_CORS_SCOPE);
215 215
         }
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 
345 345
         if ($isSameHost === false) {
346 346
             $this->logInfo(
347
-                'Host header in request either absent or do not match server origin. ' .
347
+                'Host header in request either absent or do not match server origin. '.
348 348
                 'Check config settings for Server Origin and Host Check.',
349 349
                 ['host' => $host, 'server_origin_host' => $serverOriginHost, 'server_origin_port' => $serverOriginPort]
350 350
             );
Please login to merge, or discard this patch.