Skip to content

Commit 398d4e6

Browse files
committed
CS fix docs
1 parent 3d043ef commit 398d4e6

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

docs/pages/getting_started.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ final class GuestProjection
205205
use SubscriberUtil;
206206

207207
public function __construct(
208-
private Connection $db
208+
private Connection $db,
209209
) {
210210
}
211211

@@ -223,7 +223,7 @@ final class GuestProjection
223223
#[Subscribe(GuestIsCheckedIn::class)]
224224
public function onGuestIsCheckedIn(
225225
GuestIsCheckedIn $event,
226-
DateTimeImmutable $recordedOn
226+
DateTimeImmutable $recordedOn,
227227
): void {
228228
$this->db->insert(
229229
$this->table(),
@@ -232,14 +232,14 @@ final class GuestProjection
232232
'guest_name' => $event->guestName,
233233
'check_in_date' => $recordedOn->format('Y-m-d H:i:s'),
234234
'check_out_date' => null,
235-
]
235+
],
236236
);
237237
}
238238

239239
#[Subscribe(GuestIsCheckedOut::class)]
240240
public function onGuestIsCheckedOut(
241241
GuestIsCheckedOut $event,
242-
DateTimeImmutable $recordedOn
242+
DateTimeImmutable $recordedOn,
243243
): void {
244244
$this->db->update(
245245
$this->table(),
@@ -250,7 +250,7 @@ final class GuestProjection
250250
'hotel_id' => $event->hotelId->toString(),
251251
'guest_name' => $event->guestName,
252252
'check_out_date' => null,
253-
]
253+
],
254254
);
255255
}
256256

@@ -263,7 +263,7 @@ final class GuestProjection
263263
guest_name VARCHAR(255) NOT NULL,
264264
check_in_date TIMESTAMP NOT NULL,
265265
check_out_date TIMESTAMP NULL
266-
);"
266+
);",
267267
);
268268
}
269269

@@ -339,14 +339,12 @@ So that we can actually write the data to a database, we need the associated sch
339339
bin/console event-sourcing:database:create
340340
bin/console event-sourcing:schema:create
341341
```
342-
343342
or you can use doctrine migrations:
344343

345344
```bash
346345
bin/console event-sourcing:migrations:diff
347346
bin/console event-sourcing:migrations:migrate
348347
```
349-
350348
!!! note
351349

352350
You can find out more about the cli in the [library](https://event-sourcing.patchlevel.io/latest/cli/).
@@ -370,9 +368,7 @@ use Symfony\Component\Routing\Annotation\Route;
370368
#[AsController]
371369
final class HotelController
372370
{
373-
/**
374-
* @param Repository<Hotel> $hotelRepository
375-
*/
371+
/** @param Repository<Hotel> $hotelRepository */
376372
public function __construct(
377373
private readonly Repository $hotelRepository,
378374
private readonly GuestProjection $guestProjection,

0 commit comments

Comments
 (0)