HuasoFoundries/jpgraph

View on GitHub
tests/GanttTest.php

Summary

Maintainability
A
0 mins
Test Coverage

The method _fileCheck has a boolean flag argument $debug, which is a certain sign of a Single Responsibility Principle violation.
Open

    private function _fileCheck($filename, &$ownFixtures = [], $debug = false)
Severity: Minor
Found in tests/GanttTest.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

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

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

class GanttTest extends \Codeception\Test\Unit
Severity: Minor
Found in tests/GanttTest.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/GanttTest.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/GanttTest.php by phpcodesniffer

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

    private function _fileCheck($filename, &$ownFixtures = [], $debug = false)
Severity: Minor
Found in tests/GanttTest.php by phpcodesniffer

Whitespace found at end of line
Open

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

There are no issues that match your filters.

Category
Status