Code cleanup

This commit is contained in:
James Cole
2018-04-02 15:10:40 +02:00
parent fa7ab45a40
commit a3c34e6b3c
151 changed files with 802 additions and 990 deletions

View File

@@ -37,7 +37,7 @@ class Request extends FormRequest
*/
public function boolean(string $field): bool
{
return 1 === intval($this->input($field));
return 1 === (int)$this->input($field);
}
/**
@@ -47,7 +47,7 @@ class Request extends FormRequest
*/
public function integer(string $field): int
{
return intval($this->get($field));
return (int)$this->get($field);
}
/**