?array $filters = null,
string $type = self::TYPE_SALES
): array {
- [$yearStr, $monthStr, $_] = explode('-', $monthYear);
+ [$yearStr, $monthStr, $day] = explode('-', $monthYear);
$year = (int)$yearStr;
$month = (int)$monthStr;
?array $productFilter = null,
string $type = 'sales'
): array {
- [$monthStr, $yearStr] = explode('-', $monthYear);
+ [$yearStr, $monthStr, $day] = explode('-', $monthYear);
$month = (int)$monthStr;
$year = (int)$yearStr;
$yearData = [];
foreach ($monthMap as $sid => $byCat) {
foreach ($byCat as $cat => $bySub) {
foreach ($bySub as $sub => $bySpec) {
- foreach ($bySpec as $spec => $_) {
+ foreach ($bySpec as $spec => $value) {
$speciesList[] = compact('sid','cat','sub','spec');
}
}