mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -26,16 +26,16 @@ class NotesRequest extends FormRequest
|
||||
{
|
||||
$rules = [
|
||||
'type' => [
|
||||
'required'
|
||||
'required',
|
||||
],
|
||||
'name' => [
|
||||
'required',
|
||||
Rule::unique('notes')
|
||||
->where('company_id', $this->header('company'))
|
||||
->where('type', $this->type)
|
||||
->where('type', $this->type),
|
||||
],
|
||||
'notes' => [
|
||||
'required'
|
||||
'required',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -45,7 +45,7 @@ class NotesRequest extends FormRequest
|
||||
Rule::unique('notes')
|
||||
->ignore($this->route('note')->id)
|
||||
->where('type', $this->type)
|
||||
->where('company_id', $this->header('company'))
|
||||
->where('company_id', $this->header('company')),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ class NotesRequest extends FormRequest
|
||||
{
|
||||
return collect($this->validated())
|
||||
->merge([
|
||||
'company_id' => $this->header('company')
|
||||
'company_id' => $this->header('company'),
|
||||
])
|
||||
->toArray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user