From af8b2a265be8b1880f802cda286f4d8cb02a862b Mon Sep 17 00:00:00 2001 From: wangyuting Date: Fri, 3 Oct 2025 15:38:21 +0800 Subject: [PATCH] * Optimize code. --- module/testreport/zen.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/testreport/zen.php b/module/testreport/zen.php index 575e49c049..5c00d05e4b 100644 --- a/module/testreport/zen.php +++ b/module/testreport/zen.php @@ -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();