Update requests to use uniform methods.

This commit is contained in:
James Cole
2017-01-20 19:49:35 +01:00
parent 6b57d4397a
commit 8635fe7ebb
12 changed files with 64 additions and 67 deletions

View File

@@ -36,9 +36,9 @@ class AttachmentFormRequest extends Request
public function getAttachmentData(): array
{
return [
'title' => trim($this->input('title')),
'description' => trim($this->input('description')),
'notes' => trim($this->input('notes')),
'title' => $this->getFieldOrEmptyString('title'),
'description' => $this->getFieldOrEmptyString('description'),
'notes' => $this->getFieldOrEmptyString('notes'),
];
}