api/src/Incentive/Entity/SubscriptionVersion.php
Avoid deeply nested control flow statements. Open
Open
if ( // 1.2.2. First journey validation after published deadline
$this->isDateAfterPublishedDeadline($this->_today)
) {
$this->_version = self::EEC_VERSION_IMPROVED;
}
Avoid deeply nested control flow statements. Open
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;
}
Avoid deeply nested control flow statements. Open
Open
if ( // 1.2.1. First journey validation before published deadline
$this->isDateAfterPublishedDeadline($this->_today)
) {
$this->_version = self::EEC_VERSION_STANDARD;
}
Avoid deeply nested control flow statements. Open
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;
}