mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3047
This commit is contained in:
parent
69b30f4220
commit
16a6ee577d
@ -56,25 +56,6 @@ class Request extends FormRequest
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return a boolean value.
|
|
||||||
*
|
|
||||||
* @param string $field
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function boolean(string $field): bool
|
|
||||||
{
|
|
||||||
if ('true' === (string)$this->input($field)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ('false' === (string)$this->input($field)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1 === (int)$this->input($field);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param string $value
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user