Showing 157 of 1,620 total issues
PublicProfile
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PublicProfile
{
const SMOKE_NO = 0;
const SMOKE_NOT_IN_CAR = 1;
const SMOKE = 2;
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 (is_null($ask->getCriteria()->getTueTime())) {
break;
}
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 (method_exists($personalAddress, $setter)) {
$personalAddress->{$setter}(strtoupper($tab[$i]));
}
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getSunTime())) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getFriTime())) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if ('' !== $tab[$i]) {
$massPerson->{$setter}($tab[$i]);
}
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;
}
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getThuTime())) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (!$ad->isOneWay()) {
$returnProposal = $this->proposalManager->prepareProposal($this->proposalManager->get($outwardProposal->getProposalLinked()->getId()));
$this->matchingRepository->linkRelatedMatchings($outwardProposal->getId());
}
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getSatTime())) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (Ad::ROLE_DRIVER_OR_PASSENGER == $ad->getRole()) {
// linking for the outward
$this->matchingRepository->linkOppositeMatchings($outwardProposal->getId());
if (!$ad->isOneWay()) {
// linking for the return
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getMonTime())) {
break;
}
Avoid deeply nested control flow statements. Open
Open
if (method_exists($workAddress, $setter)) {
$workAddress->{$setter}(strtoupper($tab[$i]));
}
Avoid deeply nested control flow statements. Open
Open
if (is_null($ask->getCriteria()->getWedTime())) {
break;
}