From: Philipp Holzer Date: Wed, 24 Oct 2018 18:44:19 +0000 (+0200) Subject: Code standards X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99a33b733513f9534426e523fdab43e0c600eb2b;p=friendica.git Code standards --- 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);