Skip to content

Commit

Permalink
Re-run Rector and cs fix
Browse files Browse the repository at this point in the history
samsonasik committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1487ecb commit 869124e
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@

use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;

return RectorConfig::configure()
->withPreparedSets(
@@ -28,6 +29,7 @@
->withSkip([
// conflict with cs fix
NewlineAfterStatementRector::class,
RenamePropertyToMatchTypeRector::class,
])
->withBootstrapFiles(
[__DIR__ . '/vendor/codeigniter4/framework/system/Test/bootstrap.php']
5 changes: 1 addition & 4 deletions src/Infrastructure/Persistence/Album/SQLAlbumRepository.php
Original file line number Diff line number Diff line change
@@ -22,11 +22,8 @@ final class SQLAlbumRepository implements AlbumRepository
{
use DMLPersistence;

private readonly AlbumModel $model;

public function __construct(AlbumModel $albumModel)
public function __construct(private readonly AlbumModel $model)
{
$this->model = $albumModel;
}

public function findPaginatedData(string $keyword = ''): ?array
5 changes: 1 addition & 4 deletions src/Infrastructure/Persistence/Track/SQLTrackRepository.php
Original file line number Diff line number Diff line change
@@ -27,11 +27,8 @@ final class SQLTrackRepository implements TrackRepository
save as saveData;
}

private readonly TrackModel $model;

public function __construct(TrackModel $trackModel)
public function __construct(private readonly TrackModel $model)
{
$this->model = $trackModel;
}

public function findPaginatedData(Album $album, string $keyword = ''): ?array

0 comments on commit 869124e

Please sign in to comment.