Skip to content

Commit

Permalink
Whitespace & Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
W1zzardTPU committed Nov 1, 2017
1 parent 2960a6b commit 056156b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions upload/library/TPUDetectSpamReg/AS.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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(
Expand Down

0 comments on commit 056156b

Please sign in to comment.