rinvex/laravel-subscriptions

View on GitHub

Showing 3 of 17 total issues

PlanSubscription has 26 functions (exceeds 20 allowed). Consider refactoring.
Open

class PlanSubscription extends Model
{
    use HasSlug;
    use HasFactory;
    use SoftDeletes;
Severity: Minor
Found in src/Models/PlanSubscription.php - About 3 hrs to fix

File PlanSubscription.php has 256 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types=1);

namespace Rinvex\Subscriptions\Models;
Severity: Minor
Found in src/Models/PlanSubscription.php - About 2 hrs to fix

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

    abstract public function morphMany($related, $name, $type = null, $id = null, $localKey = null);
Severity: Minor
Found in src/Traits/HasPlanSubscriptions.php - About 35 mins to fix
Severity
Category
Status
Source
Language