mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-05 05:33:36 +00:00
Autoformat lol
This commit is contained in:
@@ -39,12 +39,7 @@ class TestRequest extends FormRequest
|
||||
|
||||
public function getTestParameters(): array
|
||||
{
|
||||
return [
|
||||
'page' => $this->getPage(),
|
||||
'start' => $this->getDate('start'),
|
||||
'end' => $this->getDate('end'),
|
||||
'accounts' => $this->getAccounts(),
|
||||
];
|
||||
return ['page' => $this->getPage(), 'start' => $this->getDate('start'), 'end' => $this->getDate('end'), 'accounts' => $this->getAccounts()];
|
||||
}
|
||||
|
||||
private function getPage(): int
|
||||
@@ -52,7 +47,7 @@ class TestRequest extends FormRequest
|
||||
return 0 === (int) $this->query('page') ? 1 : (int) $this->query('page');
|
||||
}
|
||||
|
||||
private function getDate(string $field): ?Carbon
|
||||
private function getDate(string $field): null|Carbon
|
||||
{
|
||||
$value = $this->query($field);
|
||||
if (is_array($value)) {
|
||||
@@ -74,7 +69,7 @@ class TestRequest extends FormRequest
|
||||
'start' => 'date|after:1970-01-02|before:2038-01-17',
|
||||
'end' => 'date|after_or_equal:start|after:1970-01-02|before:2038-01-17',
|
||||
'accounts' => '',
|
||||
'accounts.*' => 'required|exists:accounts,id|belongsToUser:accounts',
|
||||
'accounts.*' => 'required|exists:accounts,id|belongsToUser:accounts'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user