Skip to content

A self-hosted media server and file management system

chore: pint

aminnausin38dbfd7c6015
diff --git a/app/Console/Commands/ResetDemo.php b/app/Console/Commands/ResetDemo.php
index 8fc7b7a8..79c10a78 100644
--- a/app/Console/Commands/ResetDemo.php
+++ b/app/Console/Commands/ResetDemo.php
@@ -127,11 +127,10 @@ class ResetDemo extends Command {
foreach ($nonGeneratedPosterImages as $image) {
try {
- if (!Storage::disk('public')->delete($image->path)) {
- throw new \RuntimeException("Operation Failed");
+ if (! Storage::disk('public')->delete($image->path)) {
+ throw new \RuntimeException('Operation Failed');
}
-
$deletedImageIds[] = $image->id;
$deletedLog[] = ['id' => $image->id, 'imageable_id' => $image->imageable_id, 'type' => $image->image_type, 'source' => $image->image_source, 'source_url' => $image->source_url, 'path' => $image->path];
} catch (\Throwable $e) {