From 669bcf8d5ecac2b376ae623145319b93dda72205 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 1 May 2026 09:56:14 +0300 Subject: [PATCH] style --- bootstrap/container.php | 8 ++++---- .../ScheduledNode/UseCases/GetTodaysScheduleTest.php | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bootstrap/container.php b/bootstrap/container.php index 2ae6e4c..02666ed 100644 --- a/bootstrap/container.php +++ b/bootstrap/container.php @@ -26,10 +26,10 @@ $container = new Container([ NodeRepository::class => DI\autowire(JsonNodeRepository::class), PlanRepository::class => DI\autowire(JsonPlanRepository::class), UserRepository::class => DI\autowire(JsonUserRepository::class), - ScheduledNodeRepository::class => - DI\autowire(JsonScheduledNodeRepository::class), - SessionRepository::class => - DI\autowire(JsonSessionRepository::class), + ScheduledNodeRepository::class + => DI\autowire(JsonScheduledNodeRepository::class), + SessionRepository::class + => DI\autowire(JsonSessionRepository::class), TokenGenerator::class => DI\autowire(RandomTokenGenerator::class), Clock::class => DI\autowire(SystemClock::class), PasswordHasher::class => DI\autowire(BcryptPasswordHasher::class), diff --git a/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php b/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php index 58a77b2..013bc64 100644 --- a/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php +++ b/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php @@ -29,9 +29,9 @@ class GetTodaysScheduleTest extends TestCase protected function setUp(): void { - $this->userRepo = new FakeUserRepository; - $this->scheduledNodeRepo = new FakeScheduledNodeRepository; - $this->planRepo = new FakePlanRepository; + $this->userRepo = new FakeUserRepository(); + $this->scheduledNodeRepo = new FakeScheduledNodeRepository(); + $this->planRepo = new FakePlanRepository(); $user = $this->userRepo->create(new CreateUserDto( email: new EmailAddress('email@email.com'), passwordHash: 'hash', @@ -100,7 +100,8 @@ class GetTodaysScheduleTest extends TestCase text: new Text(id: 0, name: 'test text'), parentNode: null, ), - )); + ) + ); $node->setCompleted(true); $this->scheduledNodeRepo->update($node);