kristuff/mishell

View on GitHub
vendor/composer/autoload_static.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using static access to class '\Closure' in method 'getInitializer'.
Open

        return \Closure::bind(function () use ($loader) {
            $loader->prefixLengthsPsr4 = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$prefixLengthsPsr4;
            $loader->prefixDirsPsr4 = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$prefixDirsPsr4;
            $loader->classMap = ComposerStaticInite5eca23334d547f58d55dd3321eace6e::$classMap;

Severity: Minor
Found in vendor/composer/autoload_static.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid excessively long class names like ComposerStaticInite5eca23334d547f58d55dd3321eace6e. Keep class name length under 40.
Open

class ComposerStaticInite5eca23334d547f58d55dd3321eace6e
{
    public static $prefixLengthsPsr4 = array (
        'K' => 
        array (
Severity: Minor
Found in vendor/composer/autoload_static.php by phpmd

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

There are no issues that match your filters.

Category
Status