Skip to content

Commit 8072b49

Browse files
committed
chore: Apply PHP CS fixer fixes.
1 parent af14513 commit 8072b49

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/Infrastructure/InMemory/Repository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ abstract class Repository implements RepositoryInterface
2828
public function __construct(
2929
private string $itemType,
3030
private string $collectionType,
31-
)
32-
{
31+
) {
3332
Assert::that($this->itemType)->classExists();
3433
Assert::that($this->collectionType)->classExists();
3534
}

tests/Infrastructure/InMemory/CommandBusTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public function testRegisterHandlerClassWithExplicitHandleMethod(): void
9898
// Given
9999
$commandBus = new InMemoryCommandBus();
100100
$commandBus->registerHandler(
101-
new TestCommandHandlerWithExplicitHandleMethod());
101+
new TestCommandHandlerWithExplicitHandleMethod()
102+
);
102103

103104
// When
104105
$result = $commandBus->dispatch(new TestCommand());

tests/Infrastructure/InMemory/QueryBusTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public function testRegisterHandlerClassWithExplicitHandleMethod(): void
9898
// Given
9999
$queryBus = new InMemoryQueryBus();
100100
$queryBus->registerHandler(
101-
new TestQueryHandlerWithExplicitHandleMethod());
101+
new TestQueryHandlerWithExplicitHandleMethod()
102+
);
102103

103104
// When
104105
$result = $queryBus->dispatch(new TestQuery());
@@ -127,7 +128,8 @@ public function testRegisterHandlerClassWithoutExecuteMethod(): void
127128
{
128129
$this->expectException(\InvalidArgumentException::class);
129130
(new InMemoryQueryBus())->registerHandler(
130-
new TestQueryHandlerWithoutExecuteMethod());
131+
new TestQueryHandlerWithoutExecuteMethod()
132+
);
131133
}
132134

133135
public function testRegisterCallableHandler(): void

0 commit comments

Comments
 (0)