Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberiaResurrection authored and github-actions[bot] committed Aug 28, 2022
1 parent 35f84df commit 47e4b55
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Models/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ public function getUrlAttribute(): string
if ($this->useProxy()) {
return $this->proxy_url;
}

return Storage::disk($this->disk)->url($this->filepath);
}

Expand All @@ -364,6 +365,7 @@ public function getUrlInlineAttribute(): string
if ($this->useProxy()) {
return $this->proxy_url_inline;
}

return Storage::disk($this->disk)->url($this->filepath);
}

Expand Down Expand Up @@ -661,6 +663,7 @@ protected function isDirectoryEmpty(?string $dir): ?bool
}

$files = $this->storageCommand('allFiles', $dir);

return (is_countable($files) ? count($files) : 0) === 0;
}

Expand Down Expand Up @@ -826,8 +829,8 @@ private static function str_base_convert($str, $fromBase = 10, $toBase = 36)
*/
protected function checkPath($destinationPath): bool
{
return !FileHelper::isDirectory($destinationPath) &&
!FileHelper::makeDirectory($destinationPath, 0777, true, true) &&
!FileHelper::isDirectory($destinationPath);
return ! FileHelper::isDirectory($destinationPath) &&
! FileHelper::makeDirectory($destinationPath, 0777, true, true) &&
! FileHelper::isDirectory($destinationPath);
}
}

0 comments on commit 47e4b55

Please sign in to comment.