app/Repositories/SongRepository.php
SongRepository
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SongRepository extends Repository
{
private const DEFAULT_QUEUE_LIMIT = 500;
public function findOneByPath(string $path): ?Song
Method getByGenre
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string $genre,
array $sortColumns,
string $sortDirection,
?User $scopedUser = null,
int $perPage = 50
Method getForListing
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
array $sortColumns,
string $sortDirection,
bool $ownSongsOnly = false,
?User $scopedUser = null,
int $perPage = 50