Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Feb 19, 2024
1 parent fd06fa3 commit ed2c0ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/autoupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class autoupdate {
* @param \core\event\base $event
* @return void
*/
public static function update_from_event(\core\event\base $event) : void {
public static function update_from_event(\core\event\base $event): void {
$data = $event->get_data();
$courseid = $data['courseid'];
if (isset($courseid) && $courseid > 0) {
Expand Down
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
*
* @return string
*/
public static function get_reason() : string {
public static function get_reason(): string {
return 'privacy:metadata';
}
}
2 changes: 1 addition & 1 deletion tests/condition_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class condition_test extends \advanced_testcase {
/**
* Create course and page.
*/
public function setUp():void {
public function setUp(): void {
global $CFG;
require_once($CFG->dirroot . '/availability/tests/fixtures/mock_info.php');
require_once($CFG->dirroot . '/availability/tests/fixtures/mock_info_module.php');
Expand Down

0 comments on commit ed2c0ca

Please sign in to comment.