Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -1,6 +1,5 @@
<?php
/*
* DestroyController.php
* Copyright (c) 2023 james@firefly-iii.org
@@ -40,9 +39,6 @@ class DestroyController extends Controller
{
private UserGroupRepositoryInterface $repository;
/**
*
*/
public function __construct()
{
parent::__construct();
@@ -55,11 +51,6 @@ class DestroyController extends Controller
);
}
/**
* @param UserGroup $userGroup
*
* @return JsonResponse
*/
public function destroy(UserGroup $userGroup): JsonResponse
{
/** @var User $user */
@@ -71,6 +62,7 @@ class DestroyController extends Controller
throw new NotFoundHttpException();
}
$this->repository->destroy($userGroup);
return response()->json([], 204);
}
}