From 54889488db015f3c3f1b3fbe8ec48017cefc521b Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Mon, 25 Sep 2023 11:06:48 +0000 Subject: [PATCH] Automated formatting changes (NO_CI) --- Controller/ApiAttributeController.php | 1 - Models/BillTypeMapper.php | 2 +- tests/Controller/ApiControllerTest.php | 2 +- tests/Models/BillTest.php | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Controller/ApiAttributeController.php b/Controller/ApiAttributeController.php index afb478e..9e4caac 100755 --- a/Controller/ApiAttributeController.php +++ b/Controller/ApiAttributeController.php @@ -447,7 +447,6 @@ final class ApiAttributeController extends Controller */ public function apiBillAttributeValueDelete(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/Models/BillTypeMapper.php b/Models/BillTypeMapper.php index 215a9a9..c147cbc 100755 --- a/Models/BillTypeMapper.php +++ b/Models/BillTypeMapper.php @@ -44,7 +44,7 @@ final class BillTypeMapper extends DataMapperFactory 'billing_type_transfer_type' => ['name' => 'billing_type_transfer_type', 'type' => 'int', 'internal' => 'transferType'], 'billing_type_default_template' => ['name' => 'billing_type_default_template', 'type' => 'int', 'internal' => 'defaultTemplate'], 'billing_type_transfer_stock' => ['name' => 'billing_type_transfer_stock', 'type' => 'bool', 'internal' => 'transferStock'], - 'billing_type_transfer_sign' => ['name' => 'billing_type_transfer_sign', 'type' => 'int', 'internal' => 'sign'], + 'billing_type_transfer_sign' => ['name' => 'billing_type_transfer_sign', 'type' => 'int', 'internal' => 'sign'], 'billing_type_is_template' => ['name' => 'billing_type_is_template', 'type' => 'bool', 'internal' => 'isTemplate'], ]; diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index af5d6b0..f7040bd 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -70,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( diff --git a/tests/Models/BillTest.php b/tests/Models/BillTest.php index f7cd804..374a70f 100755 --- a/tests/Models/BillTest.php +++ b/tests/Models/BillTest.php @@ -18,7 +18,6 @@ use Modules\Billing\Models\Bill; use Modules\Billing\Models\BillElement; use Modules\Billing\Models\BillStatus; use Modules\Billing\Models\NullBillType; -use Modules\Media\Models\Media; use phpOMS\Localization\ISO4217CharEnum; /** @@ -48,7 +47,7 @@ final class BillTest extends \PHPUnit\Framework\TestCase self::assertEquals('', $this->bill->info); self::assertInstanceOf('\Modules\Billing\Models\NullBillType', $this->bill->type); self::assertInstanceOf('\DateTimeImmutable', $this->bill->createdAt); - self::assertEquals(null, $this->bill->performanceDate); + self::assertNull($this->bill->performanceDate); self::assertNull($this->bill->send); self::assertNull($this->bill->client); self::assertNull($this->bill->supplier);