Remove useless in_array

It's always going to be either true or false. There are no other options.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-12-05 00:04:18 +01:00
parent 8ace8b25a6
commit a3d237f0b4
2 changed files with 1 additions and 6 deletions

View File

@ -10580,11 +10580,6 @@ parameters:
count: 1
path: src/Font.php
-
message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#"
count: 1
path: src/Footer.php
-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 4

View File

@ -141,7 +141,7 @@ class Footer
$params['server'] = $GLOBALS['server'];
if (isset($_REQUEST['single_table']) && in_array($_REQUEST['single_table'], [true, false])) {
if (isset($_REQUEST['single_table'])) {
$params['single_table'] = $_REQUEST['single_table'];
}