From 852de31ecbdbda217bc22a563bf04696349759eb Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Wed, 23 Nov 2016 23:59:15 +0300 Subject: [PATCH] Consider all channel except blank and git to be signed Signed-off-by: Lukas Reschke --- lib/private/IntegrityCheck/Checker.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/private/IntegrityCheck/Checker.php b/lib/private/IntegrityCheck/Checker.php index 102fe42a99..cba290e6aa 100644 --- a/lib/private/IntegrityCheck/Checker.php +++ b/lib/private/IntegrityCheck/Checker.php @@ -96,12 +96,8 @@ class Checker { * @return bool */ public function isCodeCheckEnforced() { - $signedChannels = [ - 'daily', - 'testing', - 'stable', - ]; - if(!in_array($this->environmentHelper->getChannel(), $signedChannels, true)) { + $notSignedChannels = [ '', 'git']; + if (in_array($this->environmentHelper->getChannel(), $notSignedChannels, true)) { return false; } @@ -115,7 +111,7 @@ class Checker { } else { $isIntegrityCheckDisabled = false; } - if($isIntegrityCheckDisabled === true) { + if ($isIntegrityCheckDisabled === true) { return false; }