Changeset View
Changeset View
Standalone View
Standalone View
src/app/Utils.php
Show All 18 Lines | class Utils | ||||
* | * | ||||
* @return int | * @return int | ||||
*/ | */ | ||||
public static function daysInLastMonth() | public static function daysInLastMonth() | ||||
{ | { | ||||
$start = new Carbon('first day of last month'); | $start = new Carbon('first day of last month'); | ||||
$end = new Carbon('last day of last month'); | $end = new Carbon('last day of last month'); | ||||
return $start->diffInDays($end); | return $start->diffInDays($end) + 1; | ||||
vanmeeuwen: Note that this is fixed in a different differential. | |||||
} | } | ||||
/** | /** | ||||
* Provide all unique combinations of elements in $input, with order and duplicates irrelevant. | * Provide all unique combinations of elements in $input, with order and duplicates irrelevant. | ||||
* | * | ||||
* @param array $input The input array of elements. | * @param array $input The input array of elements. | ||||
* | * | ||||
* @return array[] | * @return array[] | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |
Note that this is fixed in a different differential.