From 81671afb66fb510748d8b0bdf81b291d77283be3 Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Sun, 24 Sep 2023 18:29:08 +0000 Subject: [PATCH] Automated formatting changes (NO_CI) --- Controller/ApiDriverAttributeController.php | 1 - Controller/ApiVehicleAttributeController.php | 1 - tests/Controller/ApiControllerTest.php | 3 ++- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Controller/ApiDriverAttributeController.php b/Controller/ApiDriverAttributeController.php index 6664f03..56fa662 100644 --- a/Controller/ApiDriverAttributeController.php +++ b/Controller/ApiDriverAttributeController.php @@ -447,7 +447,6 @@ final class ApiDriverAttributeController extends Controller */ public function apiDriverAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void { - return; // @todo: I don't think values can be deleted? Only Attributes // However, It should be possible to remove UNUSED default values // either here or other function? diff --git a/Controller/ApiVehicleAttributeController.php b/Controller/ApiVehicleAttributeController.php index 67f47fc..463838f 100644 --- a/Controller/ApiVehicleAttributeController.php +++ b/Controller/ApiVehicleAttributeController.php @@ -447,7 +447,6 @@ final class ApiVehicleAttributeController extends Controller */ public function apiVehicleAttributeValueDelete(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void { - return; // @todo: I don't think values can be deleted? Only Attributes // However, It should be possible to remove UNUSED default values // either here or other function? diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 773f0e9..e70f7bf 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -43,6 +43,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase * @var \Modules\FleetManagement\Controller\ApiController */ protected ModuleAbstract $module; + protected ModuleAbstract $attrModule; /** @@ -69,7 +70,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase $account = new Account(); TestUtils::setMember($account, 'id', 1); - $permission = new AccountPermission(); + $permission = new AccountPermission(); $permission->unit = 1; $permission->app = 2; $permission->setPermission(