mimmi20/monolog-factory

View on GitHub

Showing 127 of 127 total issues

Method __invoke has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __invoke(
        ContainerInterface $container,
        $requestedName,
        array | null $options = null,
    ): ScalarFormatter {
Severity: Minor
Found in src/Formatter/ScalarFormatterFactory.php - About 1 hr to fix

    Method __invoke has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function __invoke(
            ContainerInterface $container,
            $requestedName,
            array | null $options = null,
        ): ErrorLogHandler {
    Severity: Minor
    Found in src/Handler/ErrorLogHandlerFactory.php - About 1 hr to fix

      Method getMonologProcessorConfig has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getMonologProcessorConfig(): array
          {
              return [
                  'aliases' => [
                      'git' => GitProcessor::class,
      Severity: Minor
      Found in src/ConfigProvider.php - About 1 hr to fix

        Method addFormatter has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function addFormatter(
                ContainerInterface $container,
                HandlerInterface $handler,
                array | null $options = null,
            ): void {
        Severity: Minor
        Found in src/AddFormatterTrait.php - About 1 hr to fix

          Method __invoke has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function __invoke(
                  ContainerInterface $container,
                  $requestedName,
                  array | null $options = null,
              ): FilterHandler {
          Severity: Minor
          Found in src/Handler/FilterHandlerFactory.php - About 1 hr to fix

            Method __invoke has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function __invoke(
                    ContainerInterface $container,
                    $requestedName,
                    array | null $options = null,
                ): MandrillHandler {
            Severity: Minor
            Found in src/Handler/MandrillHandlerFactory.php - About 1 hr to fix

              Method __invoke has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function __invoke(
                      ContainerInterface $container,
                      $requestedName,
                      array | null $options = null,
                  ): CallbackFilterHandler {
              Severity: Minor
              Found in src/Handler/CallbackFilterHandlerFactory.php - About 1 hr to fix

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): RollbarHandler {
                Severity: Minor
                Found in src/Handler/RollbarHandlerFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): ScalarFormatter {
                Severity: Minor
                Found in src/Formatter/ScalarFormatterFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): NormalizerFormatter {
                Severity: Minor
                Found in src/Formatter/NormalizerFormatterFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): HtmlFormatter {
                Severity: Minor
                Found in src/Formatter/HtmlFormatterFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): WildfireFormatter {
                Severity: Minor
                Found in src/Formatter/WildfireFormatterFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): ErrorLogHandler {
                Severity: Minor
                Found in src/Handler/ErrorLogHandlerFactory.php - About 1 hr 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

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

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): MicrosoftTeamsHandler {
                Severity: Minor
                Found in src/Handler/MicrosoftTeamsHandlerFactory.php - About 1 hr 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

                Method __invoke has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function __invoke(
                        ContainerInterface $container,
                        $requestedName,
                        array | null $options = null,
                    ): LogglyHandler {
                Severity: Minor
                Found in src/Handler/LogglyHandlerFactory.php - About 1 hr to fix

                  Method __invoke has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function __invoke(
                          ContainerInterface $container,
                          $requestedName,
                          array | null $options = null,
                      ): SyslogHandler {
                  Severity: Minor
                  Found in src/Handler/SyslogHandlerFactory.php - About 1 hr to fix

                    Method __invoke has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function __invoke(
                            ContainerInterface $container,
                            $requestedName,
                            array | null $options = null,
                        ): NewRelicHandler {
                    Severity: Minor
                    Found in src/Handler/NewRelicHandlerFactory.php - About 1 hr to fix

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

                          public function __invoke(ContainerInterface $container, $requestedName, array | null $options = null): V7Client
                          {
                              if (!is_array($options)) {
                                  throw new ServiceNotCreatedException('Options must be an Array');
                              }
                      Severity: Minor
                      Found in src/Client/ElasticsearchV7Factory.php - About 55 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

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

                          public function __invoke(
                              ContainerInterface $container,
                              $requestedName,
                              array | null $options = null,
                          ): SendGridHandler {
                      Severity: Minor
                      Found in src/Handler/SendGridHandlerFactory.php - About 55 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

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

                          public function __invoke(
                              ContainerInterface $container,
                              $requestedName,
                              array | null $options = null,
                          ): FingersCrossedHandler {
                      Severity: Minor
                      Found in src/Handler/FingersCrossedHandlerFactory.php - About 55 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

                      Severity
                      Category
                      Status
                      Source
                      Language