mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-11-02 20:30:37 -06:00
Various code optimalisations.
This commit is contained in:
1 parent
10492e3b2f
commit
2f2f907ffe
59 files changed
+309
-279
No files matched your search
@@ -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