From: valvin Date: Sat, 18 Jan 2020 22:28:14 +0000 (+0100) Subject: fix(blockbot): indent code using psr12 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e7f7868c88c48617b53d4bd70dc009684e4a264b;p=friendica-addons.git fix(blockbot): indent code using psr12 --- diff --git a/blockbot/blockbot.php b/blockbot/blockbot.php index 5f6d0cb0..8a27f402 100644 --- a/blockbot/blockbot.php +++ b/blockbot/blockbot.php @@ -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; }