chippyash/Math-Matrix

View on GitHub
src/Chippyash/Math/Matrix/Derivative/Strategy/Determinant/Lu.php

Summary

Maintainability
A
0 mins
Test Coverage

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

class Lu implements DeterminantStrategyInterface
{
   /**
     * Compute determinant using LU method
     * $mA must be

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

The variable $Lu is not named in camelCase.
Open

    public function determinant(NumericMatrix $mA)
    {
        $Lu = new dLu();
        $det = $Lu->decompose($mA)->Det;

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $Lu is not named in camelCase.
Open

    public function determinant(NumericMatrix $mA)
    {
        $Lu = new dLu();
        $det = $Lu->decompose($mA)->Det;

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

There are no issues that match your filters.

Category
Status