diff --git a/block_snapfeeds.php b/block_snapfeeds.php index 44a9b25..46ef609 100644 --- a/block_snapfeeds.php +++ b/block_snapfeeds.php @@ -112,4 +112,4 @@ public function get_content() { return $this->content; } -} \ No newline at end of file +} diff --git a/classes/api/block_replacer.php b/classes/api/block_replacer.php index dc8039d..a4cde82 100644 --- a/classes/api/block_replacer.php +++ b/classes/api/block_replacer.php @@ -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(); } @@ -118,4 +118,4 @@ public function replace_snap_feeds_deadlines_with_upcoming_events($parentcontext ]; $this->replace_block('calendar_upcoming', 'snapfeeds', null, $config, $parentcontextid); } -} \ No newline at end of file +} diff --git a/classes/event_handlers.php b/classes/event_handlers.php index 72c812e..a6ae00b 100644 --- a/classes/event_handlers.php +++ b/classes/event_handlers.php @@ -47,4 +47,4 @@ public static function review_course(base $event) { } block_replacer::get_instance()->replace_upcoming_events_with_snap_feeds_deadlines($event->contextid); } -} \ No newline at end of file +} diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 2665ced..a0a6f4f 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -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'; } -} \ No newline at end of file +} diff --git a/cli/replace_block_instances.php b/cli/replace_block_instances.php index 6773ce5..13804e9 100644 --- a/cli/replace_block_instances.php +++ b/cli/replace_block_instances.php @@ -109,4 +109,4 @@ } cli_writeln("[INFO] Replacement done."); -exit(0); \ No newline at end of file +exit(0); diff --git a/db/events.php b/db/events.php index 992f38f..e6ff794 100644 --- a/db/events.php +++ b/db/events.php @@ -37,4 +37,4 @@ 'eventname' => \core\event\course_restored::class, 'callback' => '\block_snapfeeds\event_handlers::review_course', ], -]; \ No newline at end of file +]; diff --git a/tests/replace_test.php b/tests/replace_test.php index 070655c..6866927 100644 --- a/tests/replace_test.php +++ b/tests/replace_test.php @@ -1,5 +1,5 @@ maturity = MATURITY_STABLE; $plugin->component = 'block_snapfeeds'; $plugin->dependencies = [ - 'theme_snap' => '2024040200' + 'theme_snap' => '2024040200', ];