готовый календарь, немного мусора

This commit is contained in:
maxim
2021-09-06 16:23:20 +03:00
parent 56d7afe055
commit cd7c620e1d
6 changed files with 2007 additions and 187 deletions

View File

@ -47,9 +47,9 @@ class Month
for ($index = $first_day_of_week - 1; $index >= 1; $index--, $day--) {
$this->inactive_begin[$index] = $day;
}
// Debug::dd($first_day_of_week);
$day = 1;
$index_end = ($first_day_of_week==7?42:35);
$index_end = (in_array($first_day_of_week, [6,7])?42:35);
for ($index = $quantity_days + $first_day_of_week; $index <=$index_end; $index++, $day++) {
$this->inactive_end[$index] = $day;
}