Showing 301 of 301 total issues

The class RendererAbstract has an overall complexity of 69 which is very high. The configured complexity threshold is 50.
Open

abstract class RendererAbstract
{
use TranslatableTrait;
 
public \Throwable $exception;

Avoid excessively long variable names like $instanceWithoutConstructorCache. Keep variable name length under 20.
Open

$instanceWithoutConstructorCache = new class {
Severity: Minor
Found in src/HookTrait.php by phpmd

Avoid excessively long variable names like $traceReflectionProperty. Keep variable name length under 20.
Open

$traceReflectionProperty = new \ReflectionProperty(parent::class, 'trace');
Severity: Minor
Found in src/Exception.php by phpmd

Avoid excessively long variable names like $collectionTraitHelper. Keep variable name length under 20.
Open

$collectionTraitHelper = new class {
Severity: Minor
Found in src/CollectionTrait.php by phpmd

Avoid excessively long variable names like $dataProviderAnnotation. Keep variable name length under 20.
Open

foreach ($annotations['method']['dataProvider'] ?? [] as $dataProviderAnnotation) {
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Avoid excessively long variable names like $traceReflectionProperty. Keep variable name length under 20.
Open

$traceReflectionProperty = new \ReflectionProperty($e instanceof \Exception ? \Exception::class : \Error::class, 'trace');
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Avoid excessively long variable names like $paramsReflectionProperty. Keep variable name length under 20.
Open

$paramsReflectionProperty = new \ReflectionProperty(CoreException::class, 'params');
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Avoid excessively long variable names like $metadataDataProviders. Keep variable name length under 20.
Open

$metadataDataProviders = [];
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Avoid using short method names like RendererAbstract::_(). The configured minimum method name length is 3.
Open

public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
return $this->adapter
? $this->adapter->_($message, $parameters, $domain, $locale)
: Translator::instance()->_($message, $parameters, $domain, $locale);

Avoid using short method names like Translator::_(). The configured minimum method name length is 3.
Open

public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
return $this->getAdapter()->_($message, $parameters, $domain ?? $this->defaultDomain, $locale ?? $this->defaultLocale);
}
Severity: Minor
Found in src/Translator/Translator.php by phpmd

Avoid using short method names like TranslatableTrait::_(). The configured minimum method name length is 3.
Open

public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
if (TraitUtil::hasAppScopeTrait($this) && $this->issetApp() && method_exists($this->getApp(), '_')) {
return $this->getApp()->_($message, $parameters, $domain, $locale);
}
Severity: Minor
Found in src/TranslatableTrait.php by phpmd

Avoid using short method names like ITranslatorAdapter::_(). The configured minimum method name length is 3.
Open

public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string;
Severity: Minor
Found in src/Translator/ITranslatorAdapter.php by phpmd

Avoid using short method names like Generic::_(). The configured minimum method name length is 3.
Open

public function _(string $message, array $parameters = [], ?string $domain = null, ?string $locale = null): string
{
$definition = $this->getDefinition($message, $domain ?? 'atk', $locale ?? 'en');
 
if ($definition === null) {
Severity: Minor
Found in src/Translator/Adapter/Generic.php by phpmd

Avoid using undefined variables such as '$processedMethods' which will lead to PHP notices.
Open

if (!isset($staticClass::$processedMethods[$key])) {
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

Avoid using undefined variables such as '$processedMethods' which will lead to PHP notices.
Open

$staticClass::$processedMethods[$key] = true;
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

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

$d2 = array_diff($bt, $this->_previousTrace[$trace]);
Severity: Minor
Found in src/DebugTrait.php by phpmd

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

private function _makeHookDynamicFx(?\Closure $getFxThisFx, \Closure $fx, bool $isShort): \Closure
Severity: Minor
Found in src/HookTrait.php by phpmd

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

private function releaseObjectsFromExceptionTrace(\Throwable $e): void
Severity: Minor
Found in src/Phpunit/TestCase.php by phpmd

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

public function readableCaption(string $s): string
Severity: Minor
Found in src/ReadableCaptionTrait.php by phpmd

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

$bt = [];
Severity: Minor
Found in src/DebugTrait.php by phpmd
Severity
Category
Status
Source
Language