HuasoFoundries/jpgraph

View on GitHub
tests/PieTest.php

Summary

Maintainability
A
0 mins
Test Coverage

The class PieTest has 14 public methods. Consider refactoring PieTest to keep number of public methods under 10.
Open

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

    public static $fixTures = [];
Severity: Minor
Found in tests/PieTest.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

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

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

Whitespace found at end of line
Open

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

There are no issues that match your filters.

Category
Status