railt/graphql

View on GitHub

Showing 35 of 35 total issues

File grammar.php has 569 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

use Railt\SDL\Node;
use Railt\SDL\Node\Expression as Expr;
use Railt\SDL\Node\Statement as Stmt;
Severity: Major
Found in resources/grammar.php - About 1 day to fix

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

        public function getDirectives(string $name = null): iterable
        {
            if ($this->schema !== null) {
                foreach ($this->schema->getDirectives($name) as $directive) {
                    yield $this->schema => $directive;
    Severity: Minor
    Found in src/Dictionary.php - About 5 hrs 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

    ExpressionException has 26 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ExpressionException extends CompilationException
    {
        public const CODE_UNPROCESSABLE = 0x01;
        public const CODE_UNDEFINED_VARIABLE = 0x02;
        public const CODE_ENUM_INVALID_TYPE = 0x03;
    Severity: Minor
    Found in src/Exception/ExpressionException.php - About 3 hrs to fix

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendEnumTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInterfaceTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendScalarTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendUnionTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendEnumTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInputObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInterfaceTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendUnionTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendEnumTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInputObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInterfaceTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendScalarTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendEnumTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInputObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendScalarTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendUnionTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendInputObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInterfaceTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendScalarTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendUnionTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 6 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Extend;
      src/Compiler/Command/Extend/ExtendEnumTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInputObjectTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendInterfaceTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendScalarTypeDefinitionCommand.php on lines 1..39
      src/Compiler/Command/Extend/ExtendUnionTypeDefinitionCommand.php on lines 1..39

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 130.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInputObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 7 locations. Consider refactoring.
      Open

      <?php
      
      declare(strict_types=1);
      
      namespace Railt\SDL\Compiler\Command\Define;
      src/Compiler/Command/Define/DefineDirectiveDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineEnumTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineInterfaceTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineObjectTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineScalarTypeDefinitionCommand.php on lines 1..36
      src/Compiler/Command/Define/DefineUnionTypeDefinitionCommand.php on lines 1..36

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 123.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Method getDirectives has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getDirectives(string $name = null): iterable
          {
              if ($this->schema !== null) {
                  foreach ($this->schema->getDirectives($name) as $directive) {
                      yield $this->schema => $directive;
      Severity: Minor
      Found in src/Dictionary.php - About 1 hr to fix

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

            public function execute(InputInterface $input, OutputInterface $output): int
            {
                if (!class_exists(Compiler::class)) {
                    throw new \LogicException('The "railt/compiler" dependency required');
                }
        Severity: Minor
        Found in src/Command/CompileParserCommand.php - About 1 hr to fix

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

              public function exec(): void
              {
                  $this->assertFieldNotDefined();
          
                  /** @var OutputTypeInterface $type */
          Severity: Minor
          Found in src/Compiler/Command/Build/BuildFieldDefinitionCommand.php - About 1 hr to fix

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

                public function exec(): void
                {
                    $this->assertInputFieldNotDefined();
            
                    /** @var InputTypeInterface $type */
            Severity: Minor
            Found in src/Compiler/Command/Build/BuildInputFieldDefinitionCommand.php - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language