From 76e137675998a7b850a932804c93427a62904a4e Mon Sep 17 00:00:00 2001 From: cholladay0816 Date: Wed, 6 Sep 2023 06:22:04 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- app/Models/CommissionPreset.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {