Skip to content

Commit

Permalink
pint
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilReinking committed Nov 9, 2023
1 parent d232515 commit 5c0889a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Http/Controllers/Api/TrashedFormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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.');
}

Expand Down

0 comments on commit 5c0889a

Please sign in to comment.