From 5c0889a9e2857d1e5f32902d13eb11877c493172 Mon Sep 17 00:00:00 2001 From: Philipp Reinking Date: Thu, 9 Nov 2023 14:15:49 +0100 Subject: [PATCH] pint --- app/Http/Controllers/Api/TrashedFormController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/TrashedFormController.php b/app/Http/Controllers/Api/TrashedFormController.php index b1bb6c0b..141950ab 100644 --- a/app/Http/Controllers/Api/TrashedFormController.php +++ b/app/Http/Controllers/Api/TrashedFormController.php @@ -2,9 +2,8 @@ namespace App\Http\Controllers\Api; -use App\Models\Form; -use Illuminate\Http\Request; use App\Http\Controllers\Controller; +use Illuminate\Http\Request; class TrashedFormController extends Controller { @@ -16,7 +15,7 @@ public function delete(Request $request, $form) ->where('uuid', $form) ->firstOrFail(); - if (!$model->trashed()) { + if (! $model->trashed()) { return abort(422, 'You need to put the form into trash before deleting it permanently.'); }