Various code cleanup.

This commit is contained in:
James Cole
2018-02-09 19:11:55 +01:00
parent ac98822a55
commit 95648c37b3
30 changed files with 142 additions and 256 deletions

View File

@@ -40,6 +40,16 @@ class Request extends FormRequest
return 1 === intval($this->input($field));
}
/**
* @param string $field
*
* @return int
*/
public function integer(string $field): int
{
return intval($this->get($field));
}
/**
* @param string $field
*
@@ -137,14 +147,4 @@ class Request extends FormRequest
return $return;
}
/**
* @param string $field
*
* @return int
*/
public function integer(string $field): int
{
return intval($this->get($field));
}
}