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 23f3ce4 commit 760f674
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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);
}
}
2 changes: 1 addition & 1 deletion src/Models/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Cruxinator\Attachments\Models;

use Cruxinator\Attachments\Contracts\IPreviewable;
use App\Utils\GifTranscodeFilter;
use App\Utils\PixelFormatFilter;
use App\Utils\VideoMuteFilter;
use Cruxinator\Attachments\Contracts\IPreviewable;
use Cruxinator\Attachments\Contracts\IPreviewable;
use Cruxinator\Attachments\Traits\HasAttachments;
use Cruxinator\Package\Strings\MyStr;
use Cruxinator\TemporaryDirectory\TemporaryDirectory;
Expand Down

0 comments on commit 760f674

Please sign in to comment.