From abdc53f20aec2f9aeb81ad5cf1c7868f1efc9f54 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Thu, 25 May 2023 15:37:52 +0800 Subject: [PATCH] * Batch fix illegal comment. --- module/action/test/action.class.php | 8 +- module/api/model.php | 2 +- module/build/test/build.class.php | 4 +- module/caselib/control.php | 2 +- module/convert/model.php | 2 +- module/custom/control.php | 2 +- module/dept/test/dept.class.php | 2 +- module/doc/model.php | 4 +- module/execution/control.php | 4 +- module/execution/model.php | 6 +- module/file/model.php | 2 +- module/git/model.php | 4 +- module/group/model.php | 5 +- module/kanban/model.php | 6 +- module/pivot/model.php | 10 ++- module/product/control.php | 2 +- module/productplan/control.php | 2 +- module/productplan/model.php | 2 +- module/productplan/test/productplan.class.php | 4 +- module/programplan/test/programplan.class.php | 4 +- module/project/model.php | 8 +- module/release/test/release.class.php | 2 +- module/search/test/search.class.php | 2 +- module/sonarqube/model.php | 2 +- module/story/model.php | 4 +- module/story/test/story.class.php | 10 +-- module/svn/model.php | 4 +- module/svn/syncer/syncer.php | 76 +++++++++---------- module/task/model.php | 10 +-- module/task/test/task.class.php | 2 +- module/testcase/control.php | 4 +- module/testtask/model.php | 2 +- module/todo/test/todo.class.php | 16 ++-- module/tree/model.php | 2 +- module/user/control.php | 2 +- module/webhook/test/webhook.class.php | 4 +- 36 files changed, 114 insertions(+), 113 deletions(-) diff --git a/module/action/test/action.class.php b/module/action/test/action.class.php index a66ca41e98..da8d887e94 100644 --- a/module/action/test/action.class.php +++ b/module/action/test/action.class.php @@ -72,10 +72,10 @@ class actionTest /** * Test get product, project, execution of the object. * - * @param String $objectType - * @param Int $objectID - * @param String $actionType - * @param String $extra + * @param string $objectType + * @param int $objectID + * @param string $actionType + * @param string $extra * @access public * @return array */ diff --git a/module/api/model.php b/module/api/model.php index 936d5778df..73b3ce6ef3 100644 --- a/module/api/model.php +++ b/module/api/model.php @@ -884,7 +884,7 @@ class apiModel extends model * Get demo data. * * @param string $table - * @param stirng $version + * @param string $version * @access public * @return array */ diff --git a/module/build/test/build.class.php b/module/build/test/build.class.php index 1e1905faf0..f64f1d887b 100644 --- a/module/build/test/build.class.php +++ b/module/build/test/build.class.php @@ -11,7 +11,7 @@ class buildTest * function getByID by test * * @param string $buildID - * @param beel $setImgSize + * @param bool $setImgSize * @access public * @return object */ @@ -431,7 +431,7 @@ class buildTest /** * Test get build's data for block. - * + * * @param int $projectID * @param string $orderBy * @param int $limit diff --git a/module/caselib/control.php b/module/caselib/control.php index cc4f815cc7..9da52e5c0f 100644 --- a/module/caselib/control.php +++ b/module/caselib/control.php @@ -393,7 +393,7 @@ class caselib extends control * @param string $keywords * @param string $module * @param string $method - * @param mix $extra + * @param mixed $extra * @access public * @return void */ diff --git a/module/convert/model.php b/module/convert/model.php index 957791932e..4700465217 100644 --- a/module/convert/model.php +++ b/module/convert/model.php @@ -188,7 +188,7 @@ class convertModel extends model /** * Get jira data from file. * - * @param sting $module + * @param string $module * @param int $lastID * @param int $limit * @access public diff --git a/module/custom/control.php b/module/custom/control.php index be0ad26642..fd760a8906 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -814,7 +814,7 @@ class custom extends control /** * Reset required. * - * @param srting $module + * @param string $module * @param string $confirm * @access public * @return void diff --git a/module/dept/test/dept.class.php b/module/dept/test/dept.class.php index f660b61baa..d9e1ad6b05 100644 --- a/module/dept/test/dept.class.php +++ b/module/dept/test/dept.class.php @@ -292,7 +292,7 @@ class deptTest * @param string $deptID * @param string $count * @param string $orderBy - * @param null $pager + * @param object $pager * @access public * @return array */ diff --git a/module/doc/model.php b/module/doc/model.php index dd15c0c05b..ca4f7a8470 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2137,7 +2137,7 @@ class docModel extends model /** * Get project-related document library IDs. * - * @param $projectID + * @param int $projectID * @access public * @return array */ @@ -2730,7 +2730,7 @@ class docModel extends model /** * Count the number and size of files on the current page. * - * @param arary $files + * @param array $files * @access public * @return string */ diff --git a/module/execution/control.php b/module/execution/control.php index 987ea4670b..ade42d9d37 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3159,7 +3159,7 @@ class execution extends control * Manage products. * * @param int $executionID - * @param from $from + * @param string $from * @access public * @return void */ @@ -3781,7 +3781,7 @@ class execution extends control * @param int $executionID * @param string $module * @param string $method - * @param mix $extra + * @param mixed $extra * @access public * @return void */ diff --git a/module/execution/model.php b/module/execution/model.php index 84ae9a98d2..3fa3dabd08 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2129,7 +2129,7 @@ class executionModel extends model * * @param string $module * @param string $method - * @param mix $extra + * @param mixed $extra * @access public * @return void */ @@ -4093,8 +4093,8 @@ class executionModel extends model * * @param array $sets * @param int $itemCounts - * @param date $begin - * @param date $end + * @param string $begin + * @param string $end * @param string $mode * @access public * @return array diff --git a/module/file/model.php b/module/file/model.php index b3e6c6a869..7eb18f0693 100755 --- a/module/file/model.php +++ b/module/file/model.php @@ -949,7 +949,7 @@ class fileModel extends model /** * Dwordize for imagecreatefrombmp * - * @param streing $str + * @param string $str * @access private * @return int */ diff --git a/module/git/model.php b/module/git/model.php index 9eceea3872..30f10f3779 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -402,9 +402,9 @@ class gitModel extends model } /** - * Pring log. + * Print log. * - * @param sting $log + * @param string $log * @access public * @return void */ diff --git a/module/group/model.php b/module/group/model.php index 1712789a51..820c82e77f 100644 --- a/module/group/model.php +++ b/module/group/model.php @@ -1968,9 +1968,10 @@ class groupModel extends model } /** - * update priv info + * Update priv info * - * @param void + * @param int $privID + * @param string $lang * @return void **/ public function updatePriv($privID, $lang) diff --git a/module/kanban/model.php b/module/kanban/model.php index 2ead0fa7a0..4a266d5ffb 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -3828,9 +3828,9 @@ class kanbanModel extends model /** * Get cards to import. * - * @param int $kanbanID - * @param int $excludedID - * @param obj $pager + * @param int $kanbanID + * @param int $excludedID + * @param object $pager * @access public * @return array */ diff --git a/module/pivot/model.php b/module/pivot/model.php index cf0e70a7d9..f8e8b41665 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -1655,7 +1655,7 @@ class pivotModel extends model * * @param array $columnRows * @param array $groups - * @param arry $column + * @param array $column * @param string $showColTotal * @param int $uuName * @access public @@ -2150,10 +2150,12 @@ class pivotModel extends model } /** - * @param $pre - * @param $next + * Sort summary * - * @return int + * @param array $pre + * @param array $next + * @access public + * @return mixed */ function sortSummary($pre, $next) { diff --git a/module/product/control.php b/module/product/control.php index 0644d36c7e..3d2480e870 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -429,7 +429,7 @@ class product extends control * Road map of a product. * * @param int $productID - * @param stirng $branch + * @param string $branch * @access public * @return void */ diff --git a/module/productplan/control.php b/module/productplan/control.php index 96443f99cd..15307e5d83 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -896,7 +896,7 @@ class productplan extends control /** * Batch unlink story. * - * @param $planID + * @param int $planID * @param string $orderBy * * @access public diff --git a/module/productplan/model.php b/module/productplan/model.php index 3e6faad7ec..c50f194245 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -1415,7 +1415,7 @@ class productplanModel extends model * Get plan list by ids. * * @param array $planIds - * @param boo $order + * @param bool $order * @access public * @return array */ diff --git a/module/productplan/test/productplan.class.php b/module/productplan/test/productplan.class.php index fc790c2d99..43c5840269 100644 --- a/module/productplan/test/productplan.class.php +++ b/module/productplan/test/productplan.class.php @@ -399,8 +399,8 @@ class productPlan /** * Link project * - * @param $projectID mixed $projectID - * @param $newPlans mixed $newPlans + * @param int $projectID + * @param mixed $newPlans * @access public * @return void */ diff --git a/module/programplan/test/programplan.class.php b/module/programplan/test/programplan.class.php index f3363360f8..63af58040d 100644 --- a/module/programplan/test/programplan.class.php +++ b/module/programplan/test/programplan.class.php @@ -162,8 +162,8 @@ class programplanTest /** * Test get duration. * - * @param date $begin - * @param date $end + * @param string $begin + * @param string $end * @access public * @return int */ diff --git a/module/project/model.php b/module/project/model.php index 54775e8019..cf800174e1 100755 --- a/module/project/model.php +++ b/module/project/model.php @@ -612,7 +612,7 @@ class projectModel extends model * Get project pairs by programID. * * @param int $programID - * @param status $status all|wait|doing|suspended|closed|noclosed + * @param string $status all|wait|doing|suspended|closed|noclosed * @param bool $isQueryAll * @param string $orderBy * @param string $excludedModel @@ -2713,9 +2713,9 @@ class projectModel extends model /** * Get the objects under the project. * - * @param constant $table - * @param int $projectID - * @param string $type + * @param string $table + * @param int $projectID + * @param string $type * @access public * @return object */ diff --git a/module/release/test/release.class.php b/module/release/test/release.class.php index e0dbebc20c..19dcaeb050 100644 --- a/module/release/test/release.class.php +++ b/module/release/test/release.class.php @@ -11,7 +11,7 @@ class releaseTest * function getByIDTest by release * * @param string $releaseID - * @param beel $setImgSize + * @param bool $setImgSize * @access public * @return array */ diff --git a/module/search/test/search.class.php b/module/search/test/search.class.php index 9021e13d66..e683afcbc9 100644 --- a/module/search/test/search.class.php +++ b/module/search/test/search.class.php @@ -86,7 +86,7 @@ class searchTest * Test get list. * * @param string $keywords - * @param sreing $type + * @param string $type * @access public * @return int */ diff --git a/module/sonarqube/model.php b/module/sonarqube/model.php index cf769fc5a0..68f11d9a29 100644 --- a/module/sonarqube/model.php +++ b/module/sonarqube/model.php @@ -57,7 +57,7 @@ class sonarqubeModel extends model * Get sonarqube report. * * @param int $sonarqubeID - * @param stirng $projectKey + * @param string $projectKey * @param string $metricKeys * @access public * @return object diff --git a/module/story/model.php b/module/story/model.php index c99243af99..3cc9427e51 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2571,8 +2571,8 @@ class storyModel extends model /** * Batch change the stage of story. * - * @param $storyIdList - * @param $stage + * @param array $storyIdList + * @param string $stage * * @access public * @return array diff --git a/module/story/test/story.class.php b/module/story/test/story.class.php index d7cd63ca99..ff74d925ee 100644 --- a/module/story/test/story.class.php +++ b/module/story/test/story.class.php @@ -389,9 +389,9 @@ class storyTest /** * Test batch change story plan. * - * @param arary $storyIdList - * @param int $planID - * @param int $oldPlanID + * @param array $storyIdList + * @param int $planID + * @param int $oldPlanID * @access public * @return void */ @@ -408,7 +408,7 @@ class storyTest /** * Test batch change story branch. * - * @param arary $storyIdList + * @param array $storyIdList * @param int $branchID * @param string $confirm * @param array $plans @@ -428,7 +428,7 @@ class storyTest /** * Test batch change stage. * - * @param arrau $storyIdList + * @param array $storyIdList * @param string $stage * @access public * @return void diff --git a/module/svn/model.php b/module/svn/model.php index 403b421d12..190c936576 100644 --- a/module/svn/model.php +++ b/module/svn/model.php @@ -402,9 +402,9 @@ class svnModel extends model } /** - * Pring log. + * Print log. * - * @param sting $log + * @param string $log * @access public * @return void */ diff --git a/module/svn/syncer/syncer.php b/module/svn/syncer/syncer.php index 6cbc3ef41c..c01f162fbc 100644 --- a/module/svn/syncer/syncer.php +++ b/module/svn/syncer/syncer.php @@ -21,31 +21,31 @@ class syncer { /** * The svn binary svnClient. - * - * @var string + * + * @var string * @access public */ public $svnClient; /** * The zentao client. - * - * @var string + * + * @var string * @access public */ public $zentaoClient; /** * Repos. - * - * @var array + * + * @var array * @access public */ - public $repos = array(); + public $repos = array(); /** * The log root. - * + * * @var string * @access public */ @@ -53,7 +53,7 @@ class syncer /** * The construct function. - * + * * @access public * @return void */ @@ -68,8 +68,8 @@ class syncer /** * Set config. - * - * @param object $config + * + * @param object $config * @access public * @return void */ @@ -80,7 +80,7 @@ class syncer /** * Set timezone. - * + * * @access public * @return void */ @@ -91,7 +91,7 @@ class syncer /** * Set the repos. - * + * * @access public * @return void */ @@ -103,7 +103,7 @@ class syncer /** * Set the log root. - * + * * @access public * @return void */ @@ -115,7 +115,7 @@ class syncer /** * Login to zentao. - * + * * @access public * @return void */ @@ -127,8 +127,8 @@ class syncer } /** - * Run. - * + * Run. + * * @access public * @return void */ @@ -148,7 +148,7 @@ class syncer $this->printLog("start from revision $savedRevision"); $logs = $this->getRepoLogs($repo, $savedRevision); $revisions = $this->getRevisionsFromLogs($logs); - if(!$revisions) + if(!$revisions) { $this->printLog("no logs"); continue; @@ -174,8 +174,8 @@ class syncer /** * Set repo. - * - * @param object $repo + * + * @param object $repo * @access public * @return void */ @@ -188,8 +188,8 @@ class syncer /** * Set the svn binary svnClient of a repo. - * - * @param object $repo + * + * @param object $repo * @access public * @return void */ @@ -202,8 +202,8 @@ class syncer /** * Set the log file of a repo. - * - * @param string $repoName + * + * @param string $repoName * @access public * @return void */ @@ -214,10 +214,10 @@ class syncer /** * set the root path of a repo. - * - * @param object $repo + * + * @param object $repo * @access public - * @return void + * @return void */ public function setRepoRoot($repo) { @@ -230,9 +230,9 @@ class syncer /** * Get repo logs. - * - * @param object $repo - * @param int $fromRevision + * + * @param object $repo + * @param int $fromRevision * @access public * @return string */ @@ -249,7 +249,7 @@ class syncer /** * Get the saved revision. - * + * * @access public * @return int */ @@ -261,8 +261,8 @@ class syncer /** * Get revisons from logs. - * - * @param string $logs + * + * @param string $logs * @access public * @return array|bool */ @@ -275,8 +275,8 @@ class syncer /** * Save the last revision. - * - * @param int $revision + * + * @param int $revision * @access public * @return void */ @@ -286,9 +286,9 @@ class syncer } /** - * Pring log. - * - * @param sting $log + * Print log. + * + * @param string $log * @access public * @return void */ diff --git a/module/task/model.php b/module/task/model.php index e198b9346b..046c854ca1 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -392,7 +392,7 @@ class taskModel extends model * 更新父任务的状态. * Update parent status by taskID. * - * @param $taskID + * @param int $taskID * * @access public * @return bool @@ -3249,10 +3249,10 @@ class taskModel extends model /** * Build nested list. * - * @param objecct $execution - * @param object $task - * @param bool $isChild - * @param bool $showmore + * @param object $execution + * @param object $task + * @param bool $isChild + * @param bool $showmore * @access public * @return string */ diff --git a/module/task/test/task.class.php b/module/task/test/task.class.php index 97823fa587..412c013a80 100755 --- a/module/task/test/task.class.php +++ b/module/task/test/task.class.php @@ -340,7 +340,7 @@ class taskTest * @param array $team * @param array $teamSource * @param array $teamConsumed - * @param araay $teamLeft + * @param array $teamLeft * @access public * @return object */ diff --git a/module/testcase/control.php b/module/testcase/control.php index 539b9e791f..1fa1dc822e 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -414,7 +414,7 @@ class testcase extends control /** * Create a test case. - * @param $productID + * @param int $productID * @param string $branch * @param int $moduleID * @param string $from @@ -2476,7 +2476,7 @@ class testcase extends control // if(!empty($_POST['syncToZentao'])) // $this->zanode->syncCasesToZentao($_POST['scriptPath']); - + // $nodeID = $_POST['node']; // $node = $this->zanode->getNodeByID($_POST['node']); diff --git a/module/testtask/model.php b/module/testtask/model.php index 6e326161a3..abf494a638 100755 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -1019,7 +1019,7 @@ class testtaskModel extends model * * @param int $taskID * @param int $user - * @param obejct $pager + * @param object $pager * @access public * @return array */ diff --git a/module/todo/test/todo.class.php b/module/todo/test/todo.class.php index 61b7c20920..5a71d2820f 100755 --- a/module/todo/test/todo.class.php +++ b/module/todo/test/todo.class.php @@ -176,16 +176,14 @@ class todoTest /** * Test get todo list of a user. * - * @param string $type - * @param string $account - * @param string $status - * @param int $limit - * @param mixed $pager - * @param string $orderBy - * @param status $status - * @param begin" $begin" + * @param string $type + * @param string $account + * @param string $status + * @param int $limit + * @param object $pager + * @param string $orderBy * @access public - * @return void + * @return int */ public function getListTest($type = 'today', $account = '', $status = 'all', $limit = 0, $pager = null, $orderBy = "date, status, begin") { diff --git a/module/tree/model.php b/module/tree/model.php index 10ee28493f..405e6b4fc9 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -367,7 +367,7 @@ class treeModel extends model /** * Build tree array. * - * @param $&treeMenu + * @param array $&treeMenu * @param array $modules * @param object $module * @param string $moduleName diff --git a/module/user/control.php b/module/user/control.php index a99891f29c..b7b134f609 100755 --- a/module/user/control.php +++ b/module/user/control.php @@ -1313,7 +1313,7 @@ class user extends control /** * Ajax get contact list. * - * @param $dropdownName mailto|whitelist + * @param string $dropdownName mailto|whitelist * @access public * @return string */ diff --git a/module/webhook/test/webhook.class.php b/module/webhook/test/webhook.class.php index b06a2700af..b083d5343c 100644 --- a/module/webhook/test/webhook.class.php +++ b/module/webhook/test/webhook.class.php @@ -160,8 +160,8 @@ class webhookTest /** * Update Test * - * @param aray mixed $create - * @param int mixed $id + * @param array $create + * @param int $id * @access public * @return int */