rinvex/laravel-bookings

View on GitHub
src/Traits/Ticketable.php

Summary

Maintainability
A
35 mins
Test Coverage

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/Ticketable.php - About 35 mins to fix

Avoid unused parameters such as '$model'.
Open

        static::saved(function (self $model) use ($bookings) {
Severity: Minor
Found in src/Traits/Ticketable.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

There are no issues that match your filters.

Category
Status