Skip to content

Commit 2c9f028

Browse files
Add Override attribute
1 parent 72c157f commit 2c9f028

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

classes/output/embed_iframe.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ public function __construct(\moodle_url $showquestionurl, string $iframedescript
4444
$this->iframedescription = $iframedescription;
4545
}
4646

47-
/**
48-
* Export the data for template rendering.
49-
*
50-
* @param renderer_base $output The renderer to use.
51-
* @return array The data to export.
52-
*/
47+
#[\Override]
5348
public function export_for_template(renderer_base $output): array {
5449
$data = [
5550
'showquestionurl' => $this->showquestionurl,

classes/output/error_message.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ public function __construct(string $message) {
3838
$this->message = $message;
3939
}
4040

41-
/**
42-
* Export the data for template rendering.
43-
*
44-
* @param renderer_base $output The renderer to use.
45-
* @return array The message.
46-
*/
41+
#[\Override]
4742
public function export_for_template(renderer_base $output): array {
4843
return ['message' => $this->message];
4944
}

classes/task/cleanup_task.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,12 @@ class cleanup_task extends scheduled_task {
3737
*/
3838
const MAX_AGE = 24 * 60 * 60;
3939

40-
/**
41-
* Get a descriptive name for this task (shown to admins).
42-
*
43-
* @return string The name of the task.
44-
*/
40+
#[\Override]
4541
public function get_name(): string {
4642
return get_string('taskcleanup', 'filter_embedquestion');
4743
}
4844

49-
/**
50-
* Execute the main cleanup task.
51-
*/
45+
#[\Override]
5246
public function execute(): void {
5347
$lastmodifiedcutoff = time() - self::MAX_AGE;
5448

classes/text_filter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ class text_filter extends \moodle_text_filter {
5151
*/
5252
protected $page;
5353

54-
/**
55-
* Set up the filter.
56-
* @param \moodle_page $page the page object.
57-
* @param \context $context the context object.
58-
*/
54+
#[\Override]
5955
public function setup($page, $context) {
6056
$this->page = $page;
6157
}

0 commit comments

Comments
 (0)