Refactor
parent
b668a0b842
commit
ee5ab3a9ab
|
@ -104,9 +104,15 @@ namespace {
|
|||
'down' => 'off'
|
||||
];
|
||||
|
||||
if (true === array_key_exists('status', $options) && true === array_key_exists(strtolower($options['status']), $possibleValues)) {
|
||||
if (
|
||||
true === array_key_exists('status', $options) &&
|
||||
true === array_key_exists(strtolower($options['status']), $possibleValues)
|
||||
) {
|
||||
$status = $possibleValues[$options['status']];
|
||||
} else if (true === array_key_exists('s', $options) && true === array_key_exists(strtolower($options['s']), $possibleValues)) {
|
||||
} elseif (
|
||||
true === array_key_exists('s', $options) &&
|
||||
true === array_key_exists(strtolower($options['s']), $possibleValues)
|
||||
) {
|
||||
$status = $possibleValues[$options['s']];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue