* Refactor method of metricModel.

This commit is contained in:
zhouxin
2023-12-18 15:09:06 +08:00
parent 84f35bb4a9
commit 182e77776b
+2 -6
View File
@@ -2108,15 +2108,11 @@ class metricModel extends model
* Get default selected date.
*
* @param array $dateLabels
* @param array $filters
* @access public
* @return string
*/
public function getDefaultDate(array $dateLabels, array $filters = array()): string
public function getDefaultDate(array $dateLabels): string
{
$defaultDate = '';
$dates = array_keys($dateLabels);
return (string)current($dates);
return (string)current(array_keys($dateLabels));
}
}