refactor(schedules-views): remove optional parameters
These parameters are implicitly treated as required, so we're removing
the default values since this is now deprecated (and was a bad practice
anyways).
Fixed: hores:4
GitOrigin-RevId: 43768b66fb49b207c07751592450abec198df5b5
diff --git a/src/inc/schedulesView.php b/src/inc/schedulesView.php
index 69dfb3c..ee8a4c1 100644
--- a/src/inc/schedulesView.php
+++ b/src/inc/schedulesView.php
@@ -21,7 +21,7 @@
class schedulesView {
const HOUR_HEIGHT = 30;
- public static function renderSchedule(&$week, $editEnabled = false, $editLink, $deleteLink) {
+ public static function renderSchedule(&$week, $editEnabled, $editLink, $deleteLink) {
$secmin = 24*60*60;
$secmax = 0;
@@ -118,7 +118,7 @@
<?php
}
- public static function renderPlainSchedule($week, $editEnabled = false, $editLink, $deleteLink, &$flag) {
+ public static function renderPlainSchedule($week, $editEnabled, $editLink, $deleteLink, &$flag) {
foreach ($week as $day) {
$flag = true;
?>