Improve method name

This commit is contained in:
Marcus Moore 2024-03-25 13:53:30 -07:00
parent 71722b753d
commit 57d1c036ec
No known key found for this signature in database

View file

@ -29,7 +29,7 @@ class StoreAssetRequest extends ImageUploadRequest
? Company::getIdForCurrentUser($this->company_id) ? Company::getIdForCurrentUser($this->company_id)
: $this->company_id; : $this->company_id;
$this->formatLastAuditDate(); $this->parseLastAuditDate();
$this->merge([ $this->merge([
'asset_tag' => $this->asset_tag ?? Asset::autoincrement_asset(), 'asset_tag' => $this->asset_tag ?? Asset::autoincrement_asset(),
@ -53,7 +53,7 @@ class StoreAssetRequest extends ImageUploadRequest
return $rules; return $rules;
} }
private function formatLastAuditDate(): void private function parseLastAuditDate(): void
{ {
if ($this->input('last_audit_date')) { if ($this->input('last_audit_date')) {
try { try {