mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #3047
This commit is contained in:
@@ -56,25 +56,6 @@ class Request extends FormRequest
|
||||
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
|
||||
*
|
||||
|
Reference in New Issue
Block a user