From 5059aea4161feda72ec75e71b96b81ddacf499d0 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 8 Jan 2025 15:29:51 +0100 Subject: [PATCH] reformat code --- src/Entities/Entity.php | 2 +- src/Exceptions/KlicktippExceptionInterface.php | 4 +++- tests/unit/Entities/AccountTest.php | 8 ++++---- tests/unit/Entities/SubscriptionTest.php | 3 ++- tests/unit/Entities/TagTest.php | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Entities/Entity.php b/src/Entities/Entity.php index c1bc380..48eb5aa 100644 --- a/src/Entities/Entity.php +++ b/src/Entities/Entity.php @@ -84,4 +84,4 @@ abstract class Entity extends ArrayCollection return is_null($value) ? null : (bool) $value; } -} \ No newline at end of file +} diff --git a/src/Exceptions/KlicktippExceptionInterface.php b/src/Exceptions/KlicktippExceptionInterface.php index fdec70b..aee2416 100644 --- a/src/Exceptions/KlicktippExceptionInterface.php +++ b/src/Exceptions/KlicktippExceptionInterface.php @@ -17,4 +17,6 @@ declare(strict_types=1); namespace D3\KlicktippPhpClient\Exceptions; -interface KlicktippExceptionInterface {} \ No newline at end of file +interface KlicktippExceptionInterface +{ +} diff --git a/tests/unit/Entities/AccountTest.php b/tests/unit/Entities/AccountTest.php index 6b34964..f57cea0 100644 --- a/tests/unit/Entities/AccountTest.php +++ b/tests/unit/Entities/AccountTest.php @@ -550,7 +550,7 @@ class AccountTest extends TestCase public function testGetArrayCollectionFromValue($value, ?ArrayCollection $expected, bool $expectException): void { if ($expectException) { - $this->expectException( InvalidCredentialTypeException::class ); + $this->expectException(InvalidCredentialTypeException::class); } $this->assertEquals( @@ -579,7 +579,7 @@ class AccountTest extends TestCase public function testGetStringOrNullValue($value, ?string $expected, bool $expectException): void { if ($expectException) { - $this->expectException( InvalidCredentialTypeException::class ); + $this->expectException(InvalidCredentialTypeException::class); } $this->assertEquals( @@ -608,7 +608,7 @@ class AccountTest extends TestCase public function testGetIntOrNullValue($value, ?int $expected, bool $expectException): void { if ($expectException) { - $this->expectException( InvalidCredentialTypeException::class ); + $this->expectException(InvalidCredentialTypeException::class); } $this->assertEquals( @@ -637,7 +637,7 @@ class AccountTest extends TestCase public function testGetBooleanOrNullValue($value, ?bool $expected, bool $expectException): void { if ($expectException) { - $this->expectException( InvalidCredentialTypeException::class ); + $this->expectException(InvalidCredentialTypeException::class); } $this->assertEquals( diff --git a/tests/unit/Entities/SubscriptionTest.php b/tests/unit/Entities/SubscriptionTest.php index 5bfd2d1..19bdbc9 100644 --- a/tests/unit/Entities/SubscriptionTest.php +++ b/tests/unit/Entities/SubscriptionTest.php @@ -180,7 +180,8 @@ class SubscriptionTest extends TestCase * @throws ReflectionException * @covers \D3\KlicktippPhpClient\Entities\Subscription::setName */ - public function testSetname(): void { + public function testSetname(): void + { $sut = $this->getMockBuilder(Subscription::class) ->onlyMethods(['set']) ->setConstructorArgs([[SubscriptionEndpoint::LISTID => 'foo']]) diff --git a/tests/unit/Entities/TagTest.php b/tests/unit/Entities/TagTest.php index 13fab75..828b18d 100644 --- a/tests/unit/Entities/TagTest.php +++ b/tests/unit/Entities/TagTest.php @@ -212,4 +212,4 @@ class TagTest extends TestCase yield 'has endpoint' => [true, self::once(), true]; yield 'has no endpoint' => [false, self::never(), null]; } -} \ No newline at end of file +}