tests/LineTest.php
LineTest
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LineTest extends \Codeception\Test\Unit
{
use Amenadiel\JpGraph\UnitTest\UnitTestTrait;
public static $fixTures = [];
The class LineTest has 32 non-getter- and setter-methods. Consider refactoring LineTest to keep number of methods under 25. Open
Open
class LineTest extends \Codeception\Test\Unit
{
use Amenadiel\JpGraph\UnitTest\UnitTestTrait;
public static $fixTures = [];
- Read upRead up
- Exclude checks
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
The class LineTest has 30 public methods. Consider refactoring LineTest to keep number of public methods under 10. Open
Open
class LineTest extends \Codeception\Test\Unit
{
use Amenadiel\JpGraph\UnitTest\UnitTestTrait;
public static $fixTures = [];
- Read upRead up
- Exclude checks
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
Open
class LineTest extends \Codeception\Test\Unit
- Exclude checks
Method name "_after" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _after()
- Exclude checks
Method name "_before" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _before()
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks