Showing 1,086 of 1,086 total issues

Avoid too many return statements within this method.
Open

            return $gem->config();
Severity: Major
Found in src/Resolver/Resolver.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return $this->config;
    Severity: Major
    Found in src/Resolver/Resolver.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $this;
      Severity: Major
      Found in src/Resolver/Resolver.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return fn(...$argv) => $this->resolve($gem->config(), $this->vars($this->variadic($argv), $gem->args()));
        Severity: Major
        Found in src/Resolver/Resolver.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return ($this->provider() ?? new Unresolvable)($gem->config(), $this->vars($args, $gem->args()));
          Severity: Major
          Found in src/Resolver/Resolver.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $this->shared($gem->name(), $gem->config(), $args);
            Severity: Major
            Found in src/Resolver/Resolver.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return (new class() {
                              function __invoke($file) {
                                  return include $file;
                              }
                          })($this->resolve($gem->config()));
              Severity: Major
              Found in src/Resolver/Resolver.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $this->resolve($gem->exception(), $gem->args($exception, $args));
                Severity: Major
                Found in src/Resolver/Resolver.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return Unresolvable::plugin($gem);
                  Severity: Major
                  Found in src/Resolver/Resolver.php - About 30 mins to fix

                    Function has has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                    Open

                        function has($name) : bool
                        {
                            if (is_string($name)) {
                                return isset($this->container[$name]) || isset($this->services[$name]);
                            }
                    Severity: Minor
                    Found in src/Resolver/Base.php - About 25 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Possibly zero references to global constant \Mvc5\CALL_SEPARATOR
                    Open

                        const CALL_SEPARATOR = '.';
                    Severity: Minor
                    Found in namespace.php by phan

                    Possibly zero references to global constant \Mvc5\EVENTS
                    Open

                        const EVENTS = 'events';
                    Severity: Minor
                    Found in namespace.php by phan

                    Possibly zero references to global constant \Mvc5\INDEX
                    Open

                        const INDEX = '#';
                    Severity: Minor
                    Found in namespace.php by phan

                    Possibly zero references to global constant \Mvc5\SAMESITE
                    Open

                        const SAMESITE = 'samesite';
                    Severity: Minor
                    Found in namespace.php by phan

                    non-abstract class \Mvc5\App contains abstract internal method \Iterator::key
                    Open

                    class App
                    Severity: Critical
                    Found in src/App.php by phan

                    non-abstract class \Mvc5\ArrayObject contains abstract internal method \Countable::count
                    Open

                    class ArrayObject
                    Severity: Critical
                    Found in src/ArrayObject.php by phan

                    non-abstract class \Mvc5\ArrayObject contains abstract internal method \Iterator::rewind
                    Open

                    class ArrayObject
                    Severity: Critical
                    Found in src/ArrayObject.php by phan

                    Return type of offsetGet() is undeclared type \Mvc5\Config\mixed
                    Open

                        function offsetGet($name) : mixed
                    Severity: Minor
                    Found in src/Config/ArrayAccess.php by phan

                    syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
                    Open

                        protected array $config = [];
                    Severity: Critical
                    Found in src/Config/ArrayIterator.php by phan

                    Doc-block of without contains declared return type mixed which is incompatible with the return type \Mvc5\Config\Model declared in the signature
                    Open

                         * @return Model|mixed
                    Severity: Minor
                    Found in src/Config/Model.php by phan
                    Severity
                    Category
                    Status
                    Source
                    Language