Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Jun 16, 2024
1 parent da90679 commit 3f34f9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions classes/restriction/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ public function get_course_module() {
* required for all course-modules, to make the front page and similar
* pages work more quickly (works only for current user)
* @param int $userid If set, specifies a different user ID to check availability for
* @param \course_modinfo $modinfo Usually leave as null for default. Specify when
* @param \course_modinfo|null $modinfo Usually leave as null for default. Specify when
* calling recursively from inside get_fast_modinfo()
* @return bool True if this item is available to the user, false otherwise
*/
public function is_available(&$information, $grabthelot = false, $userid = 0,
\course_modinfo $modinfo = null) {
\course_modinfo|null $modinfo = null) {
global $USER, $OUTPUT, $DB;

// Default to no information.
Expand Down
6 changes: 3 additions & 3 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function can_add_instance($courseid) {
* @param bool $charge Charge the user to enrol (only false in case of enrol coupons)
* @return bool|array true if enrolled else error code and message
*/
public function enrol_self(stdClass $instance, \stdClass $user = null, $charge = true) {
public function enrol_self(stdClass $instance, \stdClass|null $user = null, $charge = true) {
global $CFG, $DB, $USER;
require_once("$CFG->dirroot/enrol/wallet/locallib.php");
if (empty($user)) {
Expand Down Expand Up @@ -1893,10 +1893,10 @@ public function get_possible_currencies($account = null) {
/**
* Add new instance of enrol plugin.
* @param object $course
* @param array $fields instance fields
* @param array|null $fields instance fields
* @return int id of new instance, null if can not be created
*/
public function add_instance($course, array $fields = null) {
public function add_instance($course, array|null $fields = null) {

offers::parse_data($fields);

Expand Down

0 comments on commit 3f34f9b

Please sign in to comment.