diff --git a/public/main/exercise/exercise.class.php b/public/main/exercise/exercise.class.php index 896e83aae2..48458e2d65 100644 --- a/public/main/exercise/exercise.class.php +++ b/public/main/exercise/exercise.class.php @@ -6125,12 +6125,12 @@ class Exercise * @return bool */ public function send_mail_notification_for_exam( - $type = 'end', + $type, $question_list_answers, $origin, $exe_id, - $score = null, - $weight = null + $score, + $weight ) { $setting = api_get_course_setting('email_alert_manager_on_new_quiz'); @@ -7682,7 +7682,7 @@ class Exercise $current_question, $questions_in_media = [], $last_question_in_media = false, - $realQuestionList, + $realQuestionList = [], $generateJS = true ) { // With this option on the question is loaded via AJAX diff --git a/public/main/inc/lib/CourseChatUtils.php b/public/main/inc/lib/CourseChatUtils.php index 13c43d6225..2470537bd6 100644 --- a/public/main/inc/lib/CourseChatUtils.php +++ b/public/main/inc/lib/CourseChatUtils.php @@ -37,7 +37,7 @@ class CourseChatUtils * @param int $sessionId * @param int $groupId */ - public function __construct($courseId, $userId, $sessionId = 0, $groupId = 0, ResourceNode $resourceNode, ResourceRepository $repository) + public function __construct($courseId, $userId, $sessionId, $groupId, ResourceNode $resourceNode, ResourceRepository $repository) { $this->courseId = (int) $courseId; $this->userId = (int) $userId; diff --git a/public/main/inc/lib/agenda.lib.php b/public/main/inc/lib/agenda.lib.php index 887606b529..ff7e381705 100644 --- a/public/main/inc/lib/agenda.lib.php +++ b/public/main/inc/lib/agenda.lib.php @@ -2980,10 +2980,10 @@ class Agenda */ public static function get_global_agenda_items( $agendaitems, - $day = "", - $month = "", - $year = "", - $week = "", + $day, + $month, + $year, + $week, $type ) { $tbl_global_agenda = Database::get_main_table( @@ -3109,10 +3109,10 @@ class Agenda public static function get_personal_agenda_items( $user_id, $agendaitems, - $day = "", - $month = "", - $year = "", - $week = "", + $day, + $month, + $year, + $week, $type ) { $tbl_personal_agenda = Database::get_main_table(TABLE_PERSONAL_AGENDA); @@ -3235,7 +3235,7 @@ class Agenda $agendaitems, $month, $year, - $weekdaynames = [], + $weekdaynames, $monthName, $show_content = true ) { diff --git a/public/main/inc/lib/career.lib.php b/public/main/inc/lib/career.lib.php index 25f5bba009..726084e194 100644 --- a/public/main/inc/lib/career.lib.php +++ b/public/main/inc/lib/career.lib.php @@ -863,7 +863,7 @@ class Career extends Model * * @return string */ - public static function parseVertexList($groupCourseList, $vertexList, $addRow = 0, &$graph, $group, &$connections, $userResult) + public static function parseVertexList($groupCourseList, $vertexList, $addRow, &$graph, $group, &$connections, $userResult) { if (empty($vertexList)) { return ''; diff --git a/public/main/inc/lib/formvalidator/FormValidator.class.php b/public/main/inc/lib/formvalidator/FormValidator.class.php index 53855b48c5..07decc1791 100644 --- a/public/main/inc/lib/formvalidator/FormValidator.class.php +++ b/public/main/inc/lib/formvalidator/FormValidator.class.php @@ -1012,7 +1012,7 @@ EOT; * @param string $title visible title * @param array $groupList list of group or elements */ - public function addPanelOption($name, $title, $groupList, $icon, $open = false, $parent) + public function addPanelOption($name, $title, $groupList, $icon, $open, $parent) { $html = '