mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 22:43:40 +00:00
fix(blockbot): indent code using psr12
This commit is contained in:
parent
c3919e52d2
commit
e7f7868c88
1 changed files with 2 additions and 3 deletions
|
@ -79,9 +79,8 @@ function blockbot_init_1(App $a) {
|
||||||
|
|
||||||
if (!Config::get('blockbot', 'good_crawlers')) {
|
if (!Config::get('blockbot', 'good_crawlers')) {
|
||||||
$agents = array_merge($agents, $good_agents);
|
$agents = array_merge($agents, $good_agents);
|
||||||
}
|
} else {
|
||||||
else{
|
foreach ($good_agents as $good_agent) {
|
||||||
foreach($good_agents as $good_agent){
|
|
||||||
if (stristr($_SERVER['HTTP_USER_AGENT'], $good_agent)) {
|
if (stristr($_SERVER['HTTP_USER_AGENT'], $good_agent)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue