Skip to content

Commit

Permalink
Fix declarations to match the coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Mar 2, 2025
1 parent b39f191 commit 267a356
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tests/external/get_preview_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
* @copyright 2016 David Mudrak <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class get_preview_test extends \advanced_testcase {
final class get_preview_test extends \advanced_testcase {

/**
* Test the editor_marklar_get_preview() external function.
*
* @runInSeparateProcess
*/
public function test_get_preview() {
public function test_get_preview(): void {
global $CFG;
require_once($CFG->libdir.'/externallib.php');

Expand All @@ -55,7 +55,7 @@ public function test_get_preview() {
*
* @runInSeparateProcess
*/
public function test_embeded_images_preview() {
public function test_embeded_images_preview(): void {
global $CFG;
require_once($CFG->libdir.'/externallib.php');

Expand Down
8 changes: 4 additions & 4 deletions tests/privacy/provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
* @copyright 2018 David Mudrak <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider_test extends \advanced_testcase {
final class provider_test extends \advanced_testcase {

/**
* Assert that provider::get_metadata() returns valid content.
*/
public function test_get_metadata() {
public function test_get_metadata(): void {

$items = new collection('editor_marklar');
$result = provider::get_metadata($items);
Expand All @@ -45,7 +45,7 @@ public function test_get_metadata() {
/**
* Assert that provider::export_user_preferences() gives no data if the user has no Marklar preferences.
*/
public function test_export_user_preferences_no_pref() {
public function test_export_user_preferences_no_pref(): void {

$user = \core_user::get_user_by_username('admin');
provider::export_user_preferences($user->id);
Expand All @@ -58,7 +58,7 @@ public function test_export_user_preferences_no_pref() {
/**
* Assert that provider::export_user_preferences() gives user's Marklar preferences if they exist.
*/
public function test_export_user_preferences_has_pref() {
public function test_export_user_preferences_has_pref(): void {
$this->resetAfterTest();

$user = \core_user::get_user_by_username('admin');
Expand Down

0 comments on commit 267a356

Please sign in to comment.