HuasoFoundries/jpgraph

View on GitHub
tests/TickTest.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using static access to class '\Codeception\Util\Debug' in method 'setUpBeforeClass'.
Open

        Debug::debug(__CLASS__ . ' has ' . \count(self::$files) . ' files');
Severity: Minor
Found in tests/TickTest.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

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class TickTest extends \Codeception\Test\Unit
Severity: Minor
Found in tests/TickTest.php by phpcodesniffer

Method name "_after" should not be prefixed with an underscore to indicate visibility
Open

    protected function _after()
Severity: Minor
Found in tests/TickTest.php by phpcodesniffer

Method name "_before" should not be prefixed with an underscore to indicate visibility
Open

    protected function _before()
Severity: Minor
Found in tests/TickTest.php by phpcodesniffer

Whitespace found at end of line
Open

 * 
Severity: Minor
Found in tests/TickTest.php by phpcodesniffer

There are no issues that match your filters.

Category
Status