giansalex/greenter

View on GitHub
packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this method.
Open

            default: return null;
Severity: Major
Found in packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                case 'Retention': return DocumentType::RETENCION;
    Severity: Major
    Found in packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  case 'VoidedDocuments': return $this->fromVoided($doc);
      Severity: Major
      Found in packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    case 'DespatchAdvice': return DocumentType::GUIA_REMISION;
        Severity: Major
        Found in packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      case 'Perception': return DocumentType::PERCEPCION;
          Severity: Major
          Found in packages/cpe-validator/src/Validator/Resolver/XmlTypeResolver.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status