From e7f7868c88c48617b53d4bd70dc009684e4a264b Mon Sep 17 00:00:00 2001 From: valvin Date: Sat, 18 Jan 2020 23:28:14 +0100 Subject: [PATCH] fix(blockbot): indent code using psr12 --- blockbot/blockbot.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 2.39.5