Loading src/Helpers/Build.php +8 −7 Original line number Diff line number Diff line Loading @@ -547,13 +547,14 @@ */ public function checkRollout() { $rolloutpercentage = isset($this->confProp['rollout']['percentage']) ? $this->confProp['rollout']['percentage'] : 100; if ($rolloutpercentage >= 0 && $rolloutpercentage < 100) { $rand_number = rand(0, 100); if ($rand_number > $rolloutpercentage) { return false; $rolloutpercentage = isset($this->confProp['rollout']['percentage']) ? (int) $this->confProp['rollout']['percentage'] : 100; if ($rolloutpercentage <= 0 || $rolloutpercentage > 100) { return TRUE; } $rand_number = rand(1, 100); if ($rand_number > $rolloutpercentage) { return FALSE; } return true; return TRUE; } } No newline at end of file Loading
src/Helpers/Build.php +8 −7 Original line number Diff line number Diff line Loading @@ -547,13 +547,14 @@ */ public function checkRollout() { $rolloutpercentage = isset($this->confProp['rollout']['percentage']) ? $this->confProp['rollout']['percentage'] : 100; if ($rolloutpercentage >= 0 && $rolloutpercentage < 100) { $rand_number = rand(0, 100); if ($rand_number > $rolloutpercentage) { return false; $rolloutpercentage = isset($this->confProp['rollout']['percentage']) ? (int) $this->confProp['rollout']['percentage'] : 100; if ($rolloutpercentage <= 0 || $rolloutpercentage > 100) { return TRUE; } $rand_number = rand(1, 100); if ($rand_number > $rolloutpercentage) { return FALSE; } return true; return TRUE; } } No newline at end of file