Scrutiniser recommendations (#1004)

This commit is contained in:
Mark Baker 2019-06-10 17:59:44 +02:00 committed by GitHub
parent 6c25b6f422
commit e69b2ccf43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ $autoFilter->getColumn('C')
// Filter the Date column on a filter value of the first day of every period of the current year
// We us a dateGroup ruletype for this, although it is still a standard filter
foreach ($periods as $period) {
$endDate = date('t', mktime(0, 0, 0, $period, 1, $currentYear));
$endDate = date('t', mktime(0, 0, 0, $period, 1, (int) $currentYear));
$autoFilter->getColumn('D')
->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER)

View File

@ -67,7 +67,7 @@ foreach ($years as $year) {
$income = null;
} elseif ($incomeOrExpenditure == 1) {
$expenditure = rand(-500, -1000) * (1 + (rand(-1, 1) / 4));
$income = rand(500, 1000) * (1 + rand(-0.25, +0.25));
$income = rand(500, 1000) * (1 + (rand(-1, 1) / 4));
} else {
$expenditure = null;
$income = rand(500, 1000) * (1 + (rand(-1, 1) / 4));

View File

@ -127,7 +127,7 @@ $autoFilter->getColumn('C')
// Filter the Date column on a filter value of the first day of every period of the current year
// We us a dateGroup ruletype for this, although it is still a standard filter
foreach ($periods as $period) {
$endDate = date('t', mktime(0, 0, 0, $period, 1, $currentYear));
$endDate = date('t', mktime(0, 0, 0, $period, 1, (int) $currentYear));
$autoFilter->getColumn('D')
->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER)