Formula9/Framework

View on GitHub
Nine/Database/DB.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused local variables such as '$properMethod'.
Open

        $properMethod = ucfirst($method);
Severity: Minor
Found in Nine/Database/DB.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

Avoid classes with short names like DB. Configured minimum length is 3.
Open

class DB
{
    const VERSION = '0.4.2';

    /** @var Connection - Illuminate Database Connection */
Severity: Minor
Found in Nine/Database/DB.php by phpmd

ShortClassName

Since: 2.9

Detects when classes or interfaces have a very short name.

Example

class Fo {

}

interface Fo {

}

Source https://phpmd.org/rules/naming.html#shortclassname

There are no issues that match your filters.

Category
Status