* Refactor bugModel-processBuildForBugs.
This commit is contained in:
@@ -780,13 +780,14 @@ class bugModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 bugs 的影响版本和解决版本。
|
||||
* Process the openedBuild and resolvedBuild fields for bugs.
|
||||
*
|
||||
* @param array $bugs
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function processBuildForBugs($bugs)
|
||||
public function processBuildForBugs(array $bugs): array
|
||||
{
|
||||
$productIdList = array();
|
||||
foreach($bugs as $bug) $productIdList[$bug->id] = $bug->product;
|
||||
|
||||
@@ -1231,13 +1231,14 @@ class bugTest
|
||||
}
|
||||
|
||||
/**
|
||||
* 测试获取 bugs 的影响版本和解决版本。
|
||||
* Test process the openedBuild and resolvedBuild fields for bugs.
|
||||
*
|
||||
* @param array $bugIDList
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function processBuildForBugsTest($bugIDList)
|
||||
public function processBuildForBugsTest(array $bugIDList): array
|
||||
{
|
||||
$bugs = $this->objectModel->getByIdList($bugIDList);
|
||||
$array = $this->objectModel->processBuildForBugs($bugs);
|
||||
|
||||
Reference in New Issue
Block a user