HuasoFoundries/jpgraph

View on GitHub
tests/LineTest.php

Summary

Maintainability
B
4 hrs
Test Coverage

LineTest has 32 functions (exceeds 20 allowed). Consider refactoring.
Open

class LineTest extends \Codeception\Test\Unit
{
    use Amenadiel\JpGraph\UnitTest\UnitTestTrait;

    public static $fixTures = [];
Severity: Minor
Found in tests/LineTest.php - About 4 hrs to fix

    The class LineTest has 30 public methods. Consider refactoring LineTest to keep number of public methods under 10.
    Open

    class LineTest extends \Codeception\Test\Unit
    {
        use Amenadiel\JpGraph\UnitTest\UnitTestTrait;
    
        public static $fixTures = [];
    Severity: Minor
    Found in tests/LineTest.php by phpmd

    TooManyPublicMethods

    Since: 0.1

    A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    Example

    Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

    The class LineTest has 32 non-getter- and setter-methods. Consider refactoring LineTest to keep number of methods under 25.
    Open

    class LineTest extends \Codeception\Test\Unit
    {
        use Amenadiel\JpGraph\UnitTest\UnitTestTrait;
    
        public static $fixTures = [];
    Severity: Minor
    Found in tests/LineTest.php by phpmd

    TooManyMethods

    Since: 0.1

    A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

    By default it ignores methods starting with 'get' or 'set'.

    The default was changed from 10 to 25 in PHPMD 2.3.

    Example

    Source https://phpmd.org/rules/codesize.html#toomanymethods

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

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

    Whitespace found at end of line
    Open

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

    There are no issues that match your filters.

    Category
    Status