Skip to content

Commit

Permalink
Linting: linting code
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Feb 5, 2024
1 parent 294fd11 commit adf4ec1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions classes/local_adele.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function __construct() {
/**
* Get all tests.
*
* @param string $courseid
* @param string $learningpathid
* @param string $learningpathid The ID of the learning path.
* @param string $courseid The ID of the course.
* @return array
*/
public static function get_internalquuiz_id($learningpathid, $courseid) {
Expand Down Expand Up @@ -101,8 +101,8 @@ public static function get_internalquuiz_id($learningpathid, $courseid) {
/**
* Get all tests.
*
* @param string $courseid
* @param string $internalcatquizid
* @param string $internalcatquizid The ID of the internal catquiz.
* @param string $courseid The ID of the course.
* @return array
*/
public static function get_alise_compability($internalcatquizid, $courseid) {
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function adele_delete_instance($id) {
/**
* Sets content of mod.
*
* @param object cm
* @param cm_info $cm The course module information object.
*/
function mod_adele_cm_info_view(cm_info $cm) {
global $DB, $PAGE, $USER;
Expand Down
10 changes: 5 additions & 5 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@

$modulecontext = context_module::instance($cm->id);

$event = \mod_adele\event\course_module_viewed::create(array(
$event = \mod_adele\event\course_module_viewed::create([
'objectid' => $moduleinstance->id,
'context' => $modulecontext
));
'context' => $modulecontext,
]);
$event->add_record_snapshot('course', $course);
$event->add_record_snapshot('adele', $moduleinstance);
$event->trigger();

$PAGE->set_url('/mod/adele/view.php', array('id' => $cm->id));
$PAGE->set_url('/mod/adele/view.php', ['id' => $cm->id]);
$PAGE->set_title(format_string($moduleinstance->name));
$PAGE->set_heading(format_string($course->fullname));
$PAGE->set_context($modulecontext);
$learningpath = $DB->get_record(
'adele',
[
'id' => $cm->instance,
'course' => $cm->course
'course' => $cm->course,
],
'id, learningpathid, view, userlist'
);
Expand Down

0 comments on commit adf4ec1

Please sign in to comment.