Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion block_snapfeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ public function get_content() {

return $this->content;
}
}
}
4 changes: 2 additions & 2 deletions classes/api/block_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function __construct() {
* Singleton instance getter.
* @return block_replacer
*/
public static function get_instance() : block_replacer {
public static function get_instance(): block_replacer {
if (self::$instance == null) {
self::$instance = new block_replacer();
}
Expand Down Expand Up @@ -118,4 +118,4 @@ public function replace_snap_feeds_deadlines_with_upcoming_events($parentcontext
];
$this->replace_block('calendar_upcoming', 'snapfeeds', null, $config, $parentcontextid);
}
}
}
2 changes: 1 addition & 1 deletion classes/event_handlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public static function review_course(base $event) {
}
block_replacer::get_instance()->replace_upcoming_events_with_snap_feeds_deadlines($event->contextid);
}
}
}
4 changes: 2 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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 cli/replace_block_instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@
}
cli_writeln("[INFO] Replacement done.");

exit(0);
exit(0);
2 changes: 1 addition & 1 deletion db/events.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
'eventname' => \core\event\course_restored::class,
'callback' => '\block_snapfeeds\event_handlers::review_course',
],
];
];
2 changes: 1 addition & 1 deletion tests/replace_test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
//This file is part of Moodle - http://moodle.org/
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
$plugin->maturity = MATURITY_STABLE;
$plugin->component = 'block_snapfeeds';
$plugin->dependencies = [
'theme_snap' => '2024040200'
'theme_snap' => '2024040200',
];