Nine/Database/DB.php
Avoid unused local variables such as '$properMethod'. Open
Open
$properMethod = ucfirst($method);
- Read upRead up
- Exclude checks
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
Open
class DB
{
const VERSION = '0.4.2';
/** @var Connection - Illuminate Database Connection */
- Read upRead up
- Exclude checks
ShortClassName
Since: 2.9
Detects when classes or interfaces have a very short name.
Example
class Fo {
}
interface Fo {
}