Skip to content

Commit

Permalink
Apply coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Jul 12, 2022
1 parent ca28954 commit 3d75949
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/Qandidate/Toggle/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ private function assertValidStrategy(int $strategy): void
private function executeCondition(Context $context): bool
{
switch ($this->strategy) {
case self::STRATEGY_AFFIRMATIVE:
return $this->atLeastOneConditionHolds($context);
case self::STRATEGY_MAJORITY:
return $this->moreThanHalfConditionsHold($context);
case self::STRATEGY_UNANIMOUS:
return $this->allConditionsHold($context);
default:
return false;
case self::STRATEGY_AFFIRMATIVE:
return $this->atLeastOneConditionHolds($context);
case self::STRATEGY_MAJORITY:
return $this->moreThanHalfConditionsHold($context);
case self::STRATEGY_UNANIMOUS:
return $this->allConditionsHold($context);
default:
return false;
}
}

Expand Down

0 comments on commit 3d75949

Please sign in to comment.