Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
samsonasik committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 971fdf6 commit e71e6c8
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Config/Services.php
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ public static function albumTrackSummary(bool $getShared = true): SQLAlbumTrackS

return new SQLAlbumTrackSummaryRepository(
model(AlbumModel::class),
model(TrackModel::class)
model(TrackModel::class),
);
}
}
2 changes: 1 addition & 1 deletion src/Domain/Album/AlbumNotFoundException.php
Original file line number Diff line number Diff line change
@@ -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,
));
}
}
2 changes: 1 addition & 1 deletion src/Domain/Track/TrackDuplicatedRectorException.php
Original file line number Diff line number Diff line change
@@ -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,
));
}
}
2 changes: 1 addition & 1 deletion src/Domain/Track/TrackNotFoundException.php
Original file line number Diff line number Diff line change
@@ -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,
));
}
}
Original file line number Diff line number Diff line change
@@ -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,15 +185,15 @@ public function testSaveDuplicateDataUpdate(): void
'album_id' => 1,
'title' => 'Sahabat Sejati',
'author' => 'Erros Chandra',
]
],
));

$this->assertTrue($this->repository->save(
[
'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',
]
],
);
}
}
2 changes: 1 addition & 1 deletion test/unit/Domain/Album/AlbumNotFoundExceptionTest.php
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ public function testInstantiateforAlbumDoesnotExistOfId(): void
{
$this->assertInstanceOf(
AlbumNotFoundException::class,
AlbumNotFoundException::forAlbumDoesnotExistOfId(1)
AlbumNotFoundException::forAlbumDoesnotExistOfId(1),
);
}
}
2 changes: 1 addition & 1 deletion test/unit/Domain/Track/TrackNotFoundExceptionTest.php
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ public function testInstantiateforAlbumTrackDoesnotExistOfId(): void
{
$this->assertInstanceOf(
TrackNotFoundException::class,
TrackNotFoundException::forAlbumTrackDoesnotExistOfId(1)
TrackNotFoundException::forAlbumTrackDoesnotExistOfId(1),
);
}
}

0 comments on commit e71e6c8

Please sign in to comment.