]> git.mxchange.org Git - friendica-addons.git/commitdiff
fix(blockbot): indent code using psr12
authorvalvin <git@valvin.fr>
Sat, 18 Jan 2020 22:28:14 +0000 (23:28 +0100)
committervalvin <git@valvin.fr>
Sat, 18 Jan 2020 22:28:14 +0000 (23:28 +0100)
blockbot/blockbot.php

index 5f6d0cb0269c34bfb18949601efd7c38fc89eabd..8a27f402b77f524a67f257549b31223b6bff7ae5 100644 (file)
@@ -79,9 +79,8 @@ function blockbot_init_1(App $a) {
 
        if (!Config::get('blockbot', 'good_crawlers')) {
                $agents = array_merge($agents, $good_agents);
-       }
-       else{
-               foreach($good_agents as $good_agent){
+       } else {
+               foreach ($good_agents as $good_agent) {
                        if (stristr($_SERVER['HTTP_USER_AGENT'], $good_agent)) {
                                return;
                        }