mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Improve method name
This commit is contained in:
parent
71722b753d
commit
57d1c036ec
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue