From 056156b9e28c8655e57896e9ee92f1b15f55b84b Mon Sep 17 00:00:00 2001 From: W1zzard Date: Wed, 1 Nov 2017 11:25:07 +0100 Subject: [PATCH] Whitespace & Formatting --- upload/library/TPUDetectSpamReg/AS.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/upload/library/TPUDetectSpamReg/AS.php b/upload/library/TPUDetectSpamReg/AS.php index f9700e3..4bbd987 100644 --- a/upload/library/TPUDetectSpamReg/AS.php +++ b/upload/library/TPUDetectSpamReg/AS.php @@ -64,7 +64,9 @@ static function getASNameAndNumber_cymru($ip, &$asNumber, &$asName) static function getASNameAndNumber_ripe($ip, &$asNumber, &$asName) { - if (empty($ip)) return false; + if (empty($ip)) + return false; + // Old slow code try { $networkinfo=json_decode(file_get_contents('https://stat.ripe.net/data/network-info/data.json?resource='.$ip)); @@ -80,7 +82,9 @@ static function getASNameAndNumber_ripe($ip, &$asNumber, &$asName) static function getASNameAndNumber_moocherio($ip, &$asNumber, &$asName) { - if (empty($ip)) return false; + if (empty($ip)) + return false; + $curl = curl_init(); curl_setopt_array($curl, array(