Add return types

This commit is contained in:
James Cole
2018-02-16 16:42:23 +01:00
parent 834032f58e
commit 9d62b4c70d
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ class AccountRequest extends Request
/**
* @return bool
*/
public function authorize()
public function authorize(): bool
{
// Only allow authenticated users
return auth()->check();
@@ -67,7 +67,7 @@ class AccountRequest extends Request
/**
* @return array
*/
public function rules()
public function rules(): array
{
$accountRoles = join(',', config('firefly.accountRoles'));
$types = join(',', array_keys(config('firefly.subTitlesByIdentifier')));

View File

@@ -32,7 +32,7 @@ class BillRequest extends Request
/**
* @return bool
*/
public function authorize()
public function authorize(): bool
{
// Only allow authenticated users
return auth()->check();
@@ -64,7 +64,7 @@ class BillRequest extends Request
/**
* @return array
*/
public function rules()
public function rules(): array
{
$rules = [
'name' => 'required|between:1,255|uniqueObjectForUser:bills,name',