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.'); }