mageni/mageni

View on GitHub
src/frontend/app/Http/Livewire/Classes/Schedule.php

Summary

Maintainability
A
1 hr
Test Coverage

Method create has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

    public function create($description, $timezone, $startdate, $frequency, $recurrence = null)
    {
        $name = Str::uuid();
        $uuid = Str::uuid();

Severity: Minor
Found in src/frontend/app/Http/Livewire/Classes/Schedule.php - About 1 hr to fix

    Method modify has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Invalid

        public function modify($id, $description, $timezone, $startdate, $frequency)
        {
            $name = Str::uuid();
            $uuid = Str::uuid();
    
    
    Severity: Minor
    Found in src/frontend/app/Http/Livewire/Classes/Schedule.php - About 1 hr to fix

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

          public function modify($id, $description, $timezone, $startdate, $frequency)
      Severity: Minor
      Found in src/frontend/app/Http/Livewire/Classes/Schedule.php - About 35 mins to fix

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

            public function create($description, $timezone, $startdate, $frequency, $recurrence = null)
        Severity: Minor
        Found in src/frontend/app/Http/Livewire/Classes/Schedule.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status