diff --git a/app/Models/CommissionPreset.php b/app/Models/CommissionPreset.php index db5241d0..9705b103 100644 --- a/app/Models/CommissionPreset.php +++ b/app/Models/CommissionPreset.php @@ -62,13 +62,12 @@ public static function booted() static::created(function ($preset) { $preset->slug = $preset->getSlug(); }); - static::updating(function($preset) { - if($preset->isDirty('image_path')) - { + static::updating(function ($preset) { + if($preset->isDirty('image_path')) { Storage::delete($preset->getOriginal('image_path')); } }); - static::deleting(function($preset) { + static::deleting(function ($preset) { Storage::delete($preset->image_path); }); static::factory(function ($preset) {