* Fix for sonar issues.
This commit is contained in:
@@ -94,7 +94,7 @@ class product extends control
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->product->project;
|
||||
$this->view->projectStats = $projectStats;
|
||||
$this->view->PMList = $this->getPMList($projectStats);
|
||||
$this->view->PMList = $this->productZen->getPMList($projectStats);
|
||||
$this->view->product = $product;
|
||||
$this->view->projects = $projects;
|
||||
$this->view->status = $status;
|
||||
@@ -488,7 +488,7 @@ class product extends control
|
||||
}
|
||||
|
||||
/* Get actions. */
|
||||
list($actions, $pager) = $this->getActions4Dynamic($account, $orderBy, $productID, $type, $recTotal, $date, $direction);
|
||||
list($actions, $pager) = $this->productZen->getActions4Dynamic($account, $orderBy, $productID, $type, $recTotal, $date, $direction);
|
||||
if(empty($recTotal)) $recTotal = count($actions);
|
||||
|
||||
/* Assign. */
|
||||
|
||||
@@ -137,7 +137,7 @@ class productZen extends product
|
||||
* 为showErrorNone方法,设置在测试视图中的二级导航配置。
|
||||
* Set menu for showErrorNone page in qa.
|
||||
*
|
||||
* @param string $activeMenu
|
||||
* @param string $activeMenu
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
@@ -157,8 +157,8 @@ class productZen extends product
|
||||
* 为showErrorNone方法,设置在项目视图中的二级或三级导航配置。
|
||||
* Set menu for showErrorNone page in project.
|
||||
*
|
||||
* @param string $activeMenu
|
||||
* @param int $projectID
|
||||
* @param string $activeMenu
|
||||
* @param int $projectID
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
@@ -501,11 +501,11 @@ class productZen extends product
|
||||
/**
|
||||
* Get project PM List
|
||||
*
|
||||
* @param array $projectStats
|
||||
* @access private
|
||||
* @param array $projectStats
|
||||
* @access protected
|
||||
* @return string[]
|
||||
*/
|
||||
private function getPMList(array $projectStats): array
|
||||
protected function getPMList(array $projectStats): array
|
||||
{
|
||||
$accounts = array();
|
||||
foreach($projectStats as $project) $accounts[] = $project->PM;
|
||||
|
||||
Reference in New Issue
Block a user