Autoformat lol

This commit is contained in:
James Cole
2026-01-23 15:09:50 +01:00
parent ae1347c550
commit 8f15a32bd6
1071 changed files with 21111 additions and 21687 deletions

View File

@@ -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'
];
}
}