]> git.mxchange.org Git - friendica.git/commitdiff
Code standards
authorPhilipp Holzer <admin@philipp.info>
Wed, 24 Oct 2018 18:44:19 +0000 (20:44 +0200)
committerPhilipp Holzer <admin@philipp.info>
Wed, 24 Oct 2018 18:44:19 +0000 (20:44 +0200)
mod/randprof.php
src/App.php

index 9377f88afa39c736d9c335a67418247a71e1d17f..d0b3c4ef85dc629aaab75d2def14c449d9ff1737 100644 (file)
@@ -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);
        }
 
index 7a579036ce6109c52673eb1c9800004928fe01ed..429fa059f0dedb75b8fd5f78eb3d78b463ba37d6 100644 (file)
@@ -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);