EscolaLMS/pages

View on GitHub

Showing 3 of 5 total issues

Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function __construct($count = null, ?Collection $states = null, ?Collection $has = null, ?Collection $for = null, ?Collection $afterMaking = null, ?Collection $afterCreating = null, $connection = null)
Severity: Major
Found in database/factories/PageFactory.php - About 50 mins to fix

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

        public function insert(string $slug, string $title, string $content, int $userId, bool $active): Page
    Severity: Minor
    Found in src/Http/Services/PageService.php - About 35 mins to fix

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

          public function insert(string $slug, string $title, string $content, int $userId, bool $active): Page;
      Severity: Minor
      Found in src/Http/Services/Contracts/PageServiceContract.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language