app/Repositories/SongRepository.php

Summary

Maintainability
A
3 hrs
Test Coverage

SongRepository has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

class SongRepository extends Repository
{
    private const DEFAULT_QUEUE_LIMIT = 500;

    public function findOneByPath(string $path): ?Song
Severity: Minor
Found in app/Repositories/SongRepository.php - About 2 hrs to fix

    Method getByGenre has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            string $genre,
            array $sortColumns,
            string $sortDirection,
            ?User $scopedUser = null,
            int $perPage = 50
    Severity: Minor
    Found in app/Repositories/SongRepository.php - About 35 mins to fix

      Method getForListing has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              array $sortColumns,
              string $sortDirection,
              bool $ownSongsOnly = false,
              ?User $scopedUser = null,
              int $perPage = 50
      Severity: Minor
      Found in app/Repositories/SongRepository.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status