Fix return warnings

This commit is contained in:
Laurent Destailleur 2023-01-10 23:47:47 +01:00
parent 3e4da8a1c5
commit c5a83972ca
3 changed files with 8 additions and 8 deletions

View File

@ -237,7 +237,7 @@ abstract class Stats
/**
* @param int $year year number
* @return int value
* @return array array of values
*/
protected abstract function getAverageByMonth($year);

View File

@ -298,7 +298,7 @@ class ProjectStats extends Stats
* @param int $startyear End year
* @param int $cachedelay Delay we accept for cache file (0=No read, no save of cache, -1=No read but save)
* @param int $wonlostfilter Add a filter on status won/lost
* @return array Array of values
* @return array|int Array of values or <0 if error
*/
public function getWeightedAmountByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0, $wonlostfilter = 1)
{
@ -411,10 +411,10 @@ class ProjectStats extends Stats
/**
* Return amount of elements by month for several years
*
* @param int $endyear End year
* @param int $startyear Start year
* @param int $cachedelay accept for cache file (0=No read, no save of cache, -1=No read but save)
* @return array of values
* @param int $endyear End year
* @param int $startyear Start year
* @param int $cachedelay accept for cache file (0=No read, no save of cache, -1=No read but save)
* @return array|int Array of values or <0 if error
*/
public function getTransformRateByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0)
{
@ -549,7 +549,7 @@ class ProjectStats extends Stats
/**
* Return average of entity by month
* @param int $year year number
* @return int value
* @return array
*/
protected function getAverageByMonth($year)
{

View File

@ -212,7 +212,7 @@ class TaskStats extends Stats
/**
* Return average of entity by month
* @param int $year year number
* @return int value
* @return array array of values
*/
protected function getAverageByMonth($year)
{