mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 07:08:19 +00:00
Various code optimalisations.
This commit is contained in:
@@ -37,10 +37,10 @@ class Request extends FormRequest
|
||||
*/
|
||||
public function boolean(string $field): bool
|
||||
{
|
||||
if ((string)$this->input($field) === 'true') {
|
||||
if ('true' === (string)$this->input($field)) {
|
||||
return true;
|
||||
}
|
||||
if ((string)$this->input($field) === 'false') {
|
||||
if ('false' === (string)$this->input($field)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user