From 36cf32bb9bd13603906af2e3db5ebd2b89351075 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 27 Oct 2021 11:08:37 +0800 Subject: [PATCH] * Make codes meet the CR rules. --- module/ci/model.php | 2 +- module/job/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/ci/model.php b/module/ci/model.php index 6677e6b66f..d37d81d82e 100644 --- a/module/ci/model.php +++ b/module/ci/model.php @@ -54,7 +54,7 @@ class ciModel extends model */ public function syncCompileStatus($compile) { - # Max retry times is: 3 . + /* Max retry times is: 3. */ if($compile->times >= 3) { $this->dao->update(TABLE_COMPILE)->set('status')->eq('failure')->where('id')->eq($compile->id)->exec(); diff --git a/module/job/control.php b/module/job/control.php index 6e41dd58db..383fe16b1c 100644 --- a/module/job/control.php +++ b/module/job/control.php @@ -120,7 +120,7 @@ class job extends control $this->view->repoTypes = $repoTypes; $this->view->products = array(0 => '') + $this->loadModel('product')->getProductPairsByProject($this->projectID); - $this->view->jenkinsServerList = array("" => "") + $this->loadModel('jenkins')->getPairs(); + $this->view->jenkinsServerList = array('' => '') + $this->loadModel('jenkins')->getPairs(); $this->display(); }