Scrutiniser recommendations (#1004)
This commit is contained in:
		
							parent
							
								
									6c25b6f422
								
							
						
					
					
						commit
						e69b2ccf43
					
				| @ -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
 | // 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
 | // We us a dateGroup ruletype for this, although it is still a standard filter
 | ||||||
| foreach ($periods as $period) { | 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') |     $autoFilter->getColumn('D') | ||||||
|         ->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER) |         ->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER) | ||||||
|  | |||||||
| @ -67,7 +67,7 @@ foreach ($years as $year) { | |||||||
|                     $income = null; |                     $income = null; | ||||||
|                 } elseif ($incomeOrExpenditure == 1) { |                 } elseif ($incomeOrExpenditure == 1) { | ||||||
|                     $expenditure = rand(-500, -1000) * (1 + (rand(-1, 1) / 4)); |                     $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 { |                 } else { | ||||||
|                     $expenditure = null; |                     $expenditure = null; | ||||||
|                     $income = rand(500, 1000) * (1 + (rand(-1, 1) / 4)); |                     $income = rand(500, 1000) * (1 + (rand(-1, 1) / 4)); | ||||||
|  | |||||||
| @ -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
 | // 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
 | // We us a dateGroup ruletype for this, although it is still a standard filter
 | ||||||
| foreach ($periods as $period) { | 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') |     $autoFilter->getColumn('D') | ||||||
|         ->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER) |         ->setFilterType(Column::AUTOFILTER_FILTERTYPE_FILTER) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Mark Baker
						Mark Baker