@@ -209,7 +209,7 @@ discard block |
||
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 |
||
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 | ); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * @param RequestInterface $request |
248 | 248 | * @param string $requestOrigin |
249 | 249 | * @param string $requestMethod |
250 | - * @param array $lcRequestHeaders |
|
250 | + * @param string[] $lcRequestHeaders |
|
251 | 251 | * |
252 | 252 | * @return array |
253 | 253 | */ |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | /** |
446 | 446 | * @param RequestInterface $request |
447 | 447 | * |
448 | - * @return null|string |
|
448 | + * @return string|false |
|
449 | 449 | */ |
450 | 450 | private function getRequestHostHeader(RequestInterface $request): ?string |
451 | 451 | { |