Covivo/mobicoop

View on GitHub
api/src/Incentive/Entity/SubscriptionVersion.php

Summary

Maintainability
A
3 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

                        if (                                    // 1.2.1. First journey validation before published deadline
                            $this->isDateAfterPublishedDeadline($this->_today)
                        ) {
                            $this->_version = self::EEC_VERSION_STANDARD;
                        }
Severity: Major
Found in api/src/Incentive/Entity/SubscriptionVersion.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if (                                    // 1.2.2. First journey validation after published deadline
                                $this->isDateAfterPublishedDeadline($this->_today)
                            ) {
                                $this->_version = self::EEC_VERSION_IMPROVED;
                            }
    Severity: Major
    Found in api/src/Incentive/Entity/SubscriptionVersion.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                              if (                                    // 1.2.1. Ld first journey realised after the published deadline
                                  $this->isDateAfterPublishedDeadline($this->_currentCommitmentJourney->getInitialProposal()->getCriteria()->getFromDate())
                              ) {
                                  $this->_version = self::EEC_VERSION_IMPROVED;
                              }
      Severity: Major
      Found in api/src/Incentive/Entity/SubscriptionVersion.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (                                    // 1.2.1. Ld first journey realised before the published deadline
                                    $this->isDateBeforePublishedDeadline($this->_currentCommitmentJourney->getInitialProposal()->getCriteria()->getFromDate())
                                ) {
                                    $this->_version = self::EEC_VERSION_STANDARD;
                                }
        Severity: Major
        Found in api/src/Incentive/Entity/SubscriptionVersion.php - About 45 mins to fix

          There are no issues that match your filters.

          Category
          Status