From 3d75949d7c04040da03c09e527ab0f9d507fb9e9 Mon Sep 17 00:00:00 2001 From: othillo Date: Tue, 12 Jul 2022 19:10:49 +0000 Subject: [PATCH] Apply coding standards --- lib/Qandidate/Toggle/Toggle.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Qandidate/Toggle/Toggle.php b/lib/Qandidate/Toggle/Toggle.php index 69a81a5..20e755e 100644 --- a/lib/Qandidate/Toggle/Toggle.php +++ b/lib/Qandidate/Toggle/Toggle.php @@ -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; } }