Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Feb 23, 2024
1 parent f367058 commit 9c7786e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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/bulk_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function setUpBeforeClass(): void {
/**
* Tests initial setup.
*/
protected function setUp():void {
protected function setUp(): void {
global $CFG;
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
Expand Down
2 changes: 1 addition & 1 deletion tests/enrol_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class enrol_test extends \advanced_testcase {
/**
* Tests initial setup.
*/
protected function setUp():void {
protected function setUp(): void {
global $CFG, $DB;

$CFG->enablecompletion = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class manager_test extends \advanced_testcase {
/**
* Tests initial setup.
*/
protected function setUp():void {
protected function setUp(): void {
global $CFG, $DB;
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
Expand Down
4 changes: 2 additions & 2 deletions tests/other_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class other_test extends \advanced_testcase {
/**
* Tests initial setup.
*/
protected function setUp():void {
protected function setUp(): void {
global $CFG;
$CFG->enablecompletion = true;
$this->resetAfterTest(true);
Expand Down Expand Up @@ -218,7 +218,7 @@ public function test_task(): void {
* Test adhoc sending of welcome messages.
* @covers \enrol_coursecompleted\task\send_welcome
*/
public function test_adhoc_email_welcome_message(): void {
public function test_adhoc_email_welcome_message(): void {
global $DB;
$generator = $this->getDataGenerator();
$sink = $this->redirectEmails();
Expand Down

0 comments on commit 9c7786e

Please sign in to comment.