Showing 301 of 301 total issues

The property $_hasTraitCache is not named in camelCase.
Open

final class TraitUtil
{
/** @var array<class-string, array<string, bool>> */
private static $_hasTraitCache = [];
 
 
Severity: Minor
Found in src/TraitUtil.php by phpmd

Avoid variables with short names like $fx. Configured minimum length is 3.
Open

public function addMethod(string $name, \Closure $fx)
Severity: Minor
Found in src/DynamicMethodTrait.php by phpmd

Avoid deeply nested control flow statements.
Open

if ($i <= $index) {
unset($indexes[$k]);
}
Severity: Major
Found in src/HookTrait.php - About 45 mins to fix

Each trait must be in a file by itself
Open

abstract class TestCase extends BaseTestCase
Severity: Minor
Found in src/Phpunit/TestCase.php by phpcodesniffer

Each trait must be in a file by itself
Open

trait Phpunit9xTestCaseTrait
Severity: Minor
Found in src/Phpunit/TestCase.php by phpcodesniffer

The class TestCase has a coupling between objects value of 15. Consider to reduce the number of dependencies under 13.
Open

abstract class TestCase extends BaseTestCase
{
use Phpunit9xTestCaseTrait;
use WarnDynamicPropertyTrait;
 
 
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Method onHookDynamicShort has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public function onHookDynamicShort(string $spot, \Closure $getFxThisFx, \Closure $fx, array $args = [], int $priority = 5): int
Severity: Minor
Found in src/HookTrait.php - About 35 mins to fix

Method onHookDynamic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

public function onHookDynamic(string $spot, \Closure $getFxThisFx, \Closure $fx, array $args = [], int $priority = 5): int
Severity: Minor
Found in src/HookTrait.php - About 35 mins to fix

Property name "$_hasTraitCache" should not be prefixed with an underscore to indicate visibility
Open

private static $_hasTraitCache = [];
Severity: Minor
Found in src/TraitUtil.php by phpcodesniffer

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

protected function _onNotSuccessfulTest(\Throwable $e): void
Severity: Minor
Found in src/Phpunit/TestCase.php by phpcodesniffer

Property name "$_instance" should not be prefixed with an underscore to indicate visibility
Open

private static ?Factory $_instance = null;
Severity: Minor
Found in src/Factory.php by phpcodesniffer

Property name "$_previousTrace" should not be prefixed with an underscore to indicate visibility
Open

private array $_previousTrace = [];
Severity: Minor
Found in src/DebugTrait.php by phpcodesniffer

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

protected function _factory($seed, array $defaults): object
Severity: Minor
Found in src/Factory.php by phpcodesniffer

Property name "$_initialized" should not be prefixed with an underscore to indicate visibility
Open

private bool $_initialized = false;
Severity: Minor
Found in src/InitializerTrait.php by phpcodesniffer

Property name "$_hookIndexCounter" should not be prefixed with an underscore to indicate visibility
Open

private int $_hookIndexCounter = 0;
Severity: Minor
Found in src/HookTrait.php by phpcodesniffer

Possible parse error: class missing opening or closing brace
Open

class Html extends RendererAbstract

Property name "$_elementNameCounts" should not be prefixed with an underscore to indicate visibility
Open

private array $_elementNameCounts = [];
Severity: Minor
Found in src/ContainerTrait.php by phpcodesniffer

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

protected function _newObject(string $className, array $ctorArgs): object
Severity: Minor
Found in src/Factory.php by phpcodesniffer

Property name "$_app" should not be prefixed with an underscore to indicate visibility
Open

private ?QuietObjectWrapper $_app = null;
Severity: Minor
Found in src/AppScopeTrait.php by phpcodesniffer

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

protected function _mergeSeeds(...$seeds)
Severity: Minor
Found in src/Factory.php by phpcodesniffer
Severity
Category
Status
Source
Language