diff --git a/src/Config/Services.php b/src/Config/Services.php index f17633d..02c6ebc 100644 --- a/src/Config/Services.php +++ b/src/Config/Services.php @@ -46,7 +46,7 @@ public static function albumTrackSummary(bool $getShared = true): SQLAlbumTrackS return new SQLAlbumTrackSummaryRepository( model(AlbumModel::class), - model(TrackModel::class) + model(TrackModel::class), ); } } diff --git a/src/Domain/Album/AlbumNotFoundException.php b/src/Domain/Album/AlbumNotFoundException.php index c9d2830..79d336d 100644 --- a/src/Domain/Album/AlbumNotFoundException.php +++ b/src/Domain/Album/AlbumNotFoundException.php @@ -19,7 +19,7 @@ public static function forAlbumDoesnotExistOfId(int $id): self { return new self(sprintf( 'The album with album ID %d you requested does not exist.', - $id + $id, )); } } diff --git a/src/Domain/Track/TrackDuplicatedRectorException.php b/src/Domain/Track/TrackDuplicatedRectorException.php index 0c44d7f..d821743 100644 --- a/src/Domain/Track/TrackDuplicatedRectorException.php +++ b/src/Domain/Track/TrackDuplicatedRectorException.php @@ -19,7 +19,7 @@ public static function forDuplicatedTitle(int $id): self { return new self(sprintf( 'The track with album id %d has duplicated title.', - $id + $id, )); } } diff --git a/src/Domain/Track/TrackNotFoundException.php b/src/Domain/Track/TrackNotFoundException.php index 9aa77d1..4c93596 100644 --- a/src/Domain/Track/TrackNotFoundException.php +++ b/src/Domain/Track/TrackNotFoundException.php @@ -19,7 +19,7 @@ public static function forAlbumTrackDoesnotExistOfId(int $id): self { return new self(sprintf( 'The album track with track ID %d you requested does not exist.', - $id + $id, )); } } diff --git a/test/Database/Infrastructure/Persistence/Track/SQLTrackRepositoryTest.php b/test/Database/Infrastructure/Persistence/Track/SQLTrackRepositoryTest.php index ba2979a..5ba30fe 100644 --- a/test/Database/Infrastructure/Persistence/Track/SQLTrackRepositoryTest.php +++ b/test/Database/Infrastructure/Persistence/Track/SQLTrackRepositoryTest.php @@ -165,7 +165,7 @@ public function testSaveDuplicateDataInsert(): void 'album_id' => 1, 'title' => 'Sahabat Sejati', 'author' => 'Erros Chandra', - ] + ], )); $this->expectException(DuplicatedRecordException::class); @@ -174,7 +174,7 @@ public function testSaveDuplicateDataInsert(): void 'album_id' => 1, 'title' => 'Sahabat Sejati', 'author' => 'Erros Chandra', - ] + ], ); } @@ -185,7 +185,7 @@ public function testSaveDuplicateDataUpdate(): void 'album_id' => 1, 'title' => 'Sahabat Sejati', 'author' => 'Erros Chandra', - ] + ], )); $this->assertTrue($this->repository->save( @@ -193,7 +193,7 @@ public function testSaveDuplicateDataUpdate(): void 'album_id' => 1, 'title' => 'Temani Aku', 'author' => 'Erros Chandra', - ] + ], )); $lastId = Database::connect()->insertID(); @@ -205,7 +205,7 @@ public function testSaveDuplicateDataUpdate(): void 'album_id' => 1, 'title' => 'Sahabat Sejati', 'author' => 'Erros Chandra', - ] + ], ); } } diff --git a/test/unit/Domain/Album/AlbumNotFoundExceptionTest.php b/test/unit/Domain/Album/AlbumNotFoundExceptionTest.php index 601698d..3443bcb 100644 --- a/test/unit/Domain/Album/AlbumNotFoundExceptionTest.php +++ b/test/unit/Domain/Album/AlbumNotFoundExceptionTest.php @@ -30,7 +30,7 @@ public function testInstantiateforAlbumDoesnotExistOfId(): void { $this->assertInstanceOf( AlbumNotFoundException::class, - AlbumNotFoundException::forAlbumDoesnotExistOfId(1) + AlbumNotFoundException::forAlbumDoesnotExistOfId(1), ); } } diff --git a/test/unit/Domain/Track/TrackNotFoundExceptionTest.php b/test/unit/Domain/Track/TrackNotFoundExceptionTest.php index 1361f45..e5465a7 100644 --- a/test/unit/Domain/Track/TrackNotFoundExceptionTest.php +++ b/test/unit/Domain/Track/TrackNotFoundExceptionTest.php @@ -30,7 +30,7 @@ public function testInstantiateforAlbumTrackDoesnotExistOfId(): void { $this->assertInstanceOf( TrackNotFoundException::class, - TrackNotFoundException::forAlbumTrackDoesnotExistOfId(1) + TrackNotFoundException::forAlbumTrackDoesnotExistOfId(1), ); } }