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:
parent
8ace8b25a6
commit
a3d237f0b4
@ -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
|
||||
|
||||
@ -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'];
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user