From d5569ed55c4e641c972b7c50eee58102de88fed4 Mon Sep 17 00:00:00 2001 From: Guan Xiying Date: Fri, 16 Jul 2021 17:18:15 +0800 Subject: [PATCH] * Fix code format and comments of ajaxGetGitlabProjects function. --- module/repo/control.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 8445e36a33..9d2bc104ea 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1110,16 +1110,17 @@ class repo extends control die($reposHtml); } - /** - * Ajax get gitlab projects. - * - * @param int $host - * @access public - * @return void - */ - public function ajaxGetGitlabProjects($host, $token) - { - $host = helper::safe64decode($host); + /** + * Ajax get gitlab projects. + * + * @param string $host + * @param string $token + * @access public + * @return void + */ + public function ajaxGetGitlabProjects($host, $token) + { + $host = helper::safe64decode($host); $projects = $this->repo->getgitlabprojects($host, $token); if(!$projects) $this->send(array('message' => array())); @@ -1129,8 +1130,8 @@ class repo extends control { $options .= ""; } - die($options); + die($options); } /**