style: Pint 포맷팅 적용
This commit is contained in:
@@ -76,14 +76,14 @@ public function getFormattedSizeAttribute(): string
|
||||
$bytes = $this->file_size;
|
||||
|
||||
if ($bytes >= 1073741824) {
|
||||
return number_format($bytes / 1073741824, 2) . ' GB';
|
||||
return number_format($bytes / 1073741824, 2).' GB';
|
||||
} elseif ($bytes >= 1048576) {
|
||||
return number_format($bytes / 1048576, 2) . ' MB';
|
||||
return number_format($bytes / 1048576, 2).' MB';
|
||||
} elseif ($bytes >= 1024) {
|
||||
return number_format($bytes / 1024, 2) . ' KB';
|
||||
return number_format($bytes / 1024, 2).' KB';
|
||||
}
|
||||
|
||||
return $bytes . ' bytes';
|
||||
return $bytes.' bytes';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,7 +123,7 @@ public function existsInStorage(): bool
|
||||
*/
|
||||
public function getUrl(): ?string
|
||||
{
|
||||
if (!$this->existsInStorage()) {
|
||||
if (! $this->existsInStorage()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ public function getUrl(): ?string
|
||||
*/
|
||||
public function download()
|
||||
{
|
||||
if (!$this->existsInStorage()) {
|
||||
if (! $this->existsInStorage()) {
|
||||
abort(404, '파일을 찾을 수 없습니다.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user