* Refactor getModuleOwner function.

This commit is contained in:
daitingting
2023-05-30 03:24:26 +00:00
parent 64368f82a0
commit 86b5e908e6
5 changed files with 89 additions and 63 deletions
+6 -10
View File
@@ -767,25 +767,21 @@ class bugTest
}
/**
* 获取模块的负责人的测试用例。
* Test get module owner.
*
* @param int $moduleID
* @param int $productID
* @access public
* @return string
* @return array
*/
public function getModuleOwnerTest($moduleID, $productID)
public function getModuleOwnerTest(int $moduleID, int $productID): array
{
$owner = $this->objectModel->getModuleOwner($moduleID, $productID);
if(dao::isError())
{
return dao::getError();
}
else
{
return $owner;
}
if(dao::isError()) return dao::getError();
return $owner;
}
/**