apply StyleCI recommendation

This commit is contained in:
El RIDO 2025-11-19 19:26:00 +01:00
parent 69e5fc1b05
commit 9c5ba6ffc3
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -266,7 +266,7 @@ class Request
// simple cases
if (
($_SERVER['HTTP_X_REQUESTED_WITH'] ?? '' ) == 'JSONHttpRequest' ||
($_SERVER['HTTP_X_REQUESTED_WITH'] ?? '') == 'JSONHttpRequest' ||
(
str_contains($acceptHeader, self::MIME_JSON) &&
!str_contains($acceptHeader, self::MIME_HTML) &&