* Optimize code.

This commit is contained in:
wangyuting
2025-11-18 08:31:33 +08:00
parent aff83bc747
commit af8b2a265b
+4 -4
View File
@@ -139,10 +139,10 @@ class testreportZen extends testreport
* @param int $productID
* @param object $task
* @param string $method
* @access protected
* @access public
* @return array
*/
protected function assignTesttaskReportData(int $objectID, string $begin = '', string $end = '', int $productID = 0, ?object $task = null, string $method = 'create'): array
public function assignTesttaskReportData(int $objectID, string $begin = '', string $end = '', int $productID = 0, ?object $task = null, string $method = 'create'): array
{
$begin = !empty($begin) ? date("Y-m-d", strtotime($begin)) : $task->begin;
$end = !empty($end) ? date("Y-m-d", strtotime($end)) : $task->end;
@@ -185,10 +185,10 @@ class testreportZen extends testreport
* @param string $begin
* @param string $end
* @param int $executionID
* @access protected
* @access public
* @return array
*/
protected function assignProjectReportDataForCreate(int $objectID, string $objectType, string $extra, string $begin = '', string $end = '', int $executionID = 0): array
public function assignProjectReportDataForCreate(int $objectID, string $objectType, string $extra, string $begin = '', string $end = '', int $executionID = 0): array
{
$owners = array();
$buildIdList = array();