HuasoFoundries/jpgraph

View on GitHub
src/image/Progress.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'Set'.
Open

            Util\JpGraphError::RaiseL(6027);
Severity: Minor
Found in src/image/Progress.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Method name "Progress::SetPattern" is not in camel caps format
Open

    public function SetPattern($aPattern, $aColor = 'blue', $aDensity = 98)
Severity: Minor
Found in src/image/Progress.php by phpcodesniffer

Method name "Progress::SetHeight" is not in camel caps format
Open

    public function SetHeight($aHeight)
Severity: Minor
Found in src/image/Progress.php by phpcodesniffer

Method name "Progress::SetFillColor" is not in camel caps format
Open

    public function SetFillColor($aColor)
Severity: Minor
Found in src/image/Progress.php by phpcodesniffer

Method name "Progress::Set" is not in camel caps format
Open

    public function Set($aProg)
Severity: Minor
Found in src/image/Progress.php by phpcodesniffer

There are no issues that match your filters.

Category
Status