rinvex/laravel-bookings

View on GitHub
src/Traits/Bookable.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/Bookable.php - About 35 mins to fix

Avoid unused parameters such as '$model'.
Open

        static::saved(function (self $model) use ($availabilities) {
Severity: Minor
Found in src/Traits/Bookable.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

Avoid unused parameters such as '$model'.
Open

        static::saved(function (self $model) use ($rates) {
Severity: Minor
Found in src/Traits/Bookable.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

Avoid unused parameters such as '$model'.
Open

        static::saved(function (self $model) use ($bookings) {
Severity: Minor
Found in src/Traits/Bookable.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