tests/BarTest.php
The class BarTest has 18 public methods. Consider refactoring BarTest to keep number of public methods under 10. Open
Open
class BarTest 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 BarTest extends \Codeception\Test\Unit
- Exclude checks
Method name "_before" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _before()
- Exclude checks
Method name "_after" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _after()
- Exclude checks
Whitespace found at end of line Open
Open
*
- Exclude checks