From 99a33b733513f9534426e523fdab43e0c600eb2b Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Wed, 24 Oct 2018 20:44:19 +0200 Subject: [PATCH] Code standards --- mod/randprof.php | 1 - src/App.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/randprof.php b/mod/randprof.php index 9377f88afa..d0b3c4ef85 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -14,7 +14,6 @@ function randprof_init(App $a) if ($x) { $link = Contact::magicLink($x); - // @TODO making the return of magicLink save to use either externalRedirect or internalRedirect $a->redirect($link); } diff --git a/src/App.php b/src/App.php index 7a579036ce..429fa059f0 100644 --- a/src/App.php +++ b/src/App.php @@ -2016,8 +2016,7 @@ class App */ public function redirect($toUrl) { - if (filter_var($toUrl, FILTER_VALIDATE_URL)) - { + if (filter_var($toUrl, FILTER_VALIDATE_URL)) { Core\System::externalRedirect($toUrl); } else { $this->internalRedirect($toUrl);