From 253d75ae82920b20771bddd9993928930e3536b5 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 26 Feb 2021 23:55:00 +0000 Subject: [PATCH] format --- ext/biography/main.php | 15 +++++++-------- ext/biography/test.php | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ext/biography/main.php b/ext/biography/main.php index 49b1a580..913bf9df 100644 --- a/ext/biography/main.php +++ b/ext/biography/main.php @@ -14,22 +14,21 @@ class Biography extends Extension if ($user->id == $duser->id) { $this->theme->display_composer($page, $bio); - } - else { + } else { $this->theme->display_biography($page, $bio); - } + } } public function onPageRequest(PageRequestEvent $event) { global $cache, $database, $page, $user, $user_config; if ($event->page_matches("biography")) { - if ($user->check_auth_token()) { + if ($user->check_auth_token()) { $user_config->set_string("biography", $_POST['biography']); - $page->flash("Bio Updated"); - $page->set_mode(PageMode::REDIRECT); - $page->set_redirect(referer_or(make_link())); - } + $page->flash("Bio Updated"); + $page->set_mode(PageMode::REDIRECT); + $page->set_redirect(referer_or(make_link())); + } } } } diff --git a/ext/biography/test.php b/ext/biography/test.php index 5b9db7b7..e07a4851 100644 --- a/ext/biography/test.php +++ b/ext/biography/test.php @@ -3,7 +3,7 @@ class BiographyTest extends ShimmiePHPUnitTestCase { public function testBio() { - global $database; + global $database; $this->log_in_as_user(); $this->post_page("biography", ["biography"=>"My bio goes here"]); $this->get_page("user/" . self::$user_name);