mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 21:23:36 +00:00
Autoformat lol
This commit is contained in:
@@ -39,14 +39,10 @@ class TriggerRequest extends FormRequest
|
||||
|
||||
public function getTriggerParameters(): array
|
||||
{
|
||||
return [
|
||||
'start' => $this->getDate('start'),
|
||||
'end' => $this->getDate('end'),
|
||||
'accounts' => $this->getAccounts(),
|
||||
];
|
||||
return ['start' => $this->getDate('start'), 'end' => $this->getDate('end'), 'accounts' => $this->getAccounts()];
|
||||
}
|
||||
|
||||
private function getDate(string $field): ?Carbon
|
||||
private function getDate(string $field): null|Carbon
|
||||
{
|
||||
$value = $this->query($field);
|
||||
if (is_array($value)) {
|
||||
@@ -68,9 +64,6 @@ class TriggerRequest extends FormRequest
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'start' => 'date|after:1970-01-02|before:2038-01-17',
|
||||
'end' => 'date|after_or_equal:start|after:1970-01-02|before:2038-01-17',
|
||||
];
|
||||
return ['start' => 'date|after:1970-01-02|before:2038-01-17', 'end' => 'date|after_or_equal:start|after:1970-01-02|before:2038-01-17'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user