Fix return warnings
This commit is contained in:
parent
3e4da8a1c5
commit
c5a83972ca
@ -237,7 +237,7 @@ abstract class Stats
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $year year number
|
* @param int $year year number
|
||||||
* @return int value
|
* @return array array of values
|
||||||
*/
|
*/
|
||||||
protected abstract function getAverageByMonth($year);
|
protected abstract function getAverageByMonth($year);
|
||||||
|
|
||||||
|
|||||||
@ -298,7 +298,7 @@ class ProjectStats extends Stats
|
|||||||
* @param int $startyear End year
|
* @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 $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
|
* @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)
|
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
|
* Return amount of elements by month for several years
|
||||||
*
|
*
|
||||||
* @param int $endyear End year
|
* @param int $endyear End year
|
||||||
* @param int $startyear Start 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)
|
* @param int $cachedelay accept for cache file (0=No read, no save of cache, -1=No read but save)
|
||||||
* @return array of values
|
* @return array|int Array of values or <0 if error
|
||||||
*/
|
*/
|
||||||
public function getTransformRateByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0)
|
public function getTransformRateByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0)
|
||||||
{
|
{
|
||||||
@ -549,7 +549,7 @@ class ProjectStats extends Stats
|
|||||||
/**
|
/**
|
||||||
* Return average of entity by month
|
* Return average of entity by month
|
||||||
* @param int $year year number
|
* @param int $year year number
|
||||||
* @return int value
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function getAverageByMonth($year)
|
protected function getAverageByMonth($year)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -212,7 +212,7 @@ class TaskStats extends Stats
|
|||||||
/**
|
/**
|
||||||
* Return average of entity by month
|
* Return average of entity by month
|
||||||
* @param int $year year number
|
* @param int $year year number
|
||||||
* @return int value
|
* @return array array of values
|
||||||
*/
|
*/
|
||||||
protected function getAverageByMonth($year)
|
protected function getAverageByMonth($year)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user