mirror of
https://github.com/php-win-ext/MaxMind-DB-Reader-php.git
synced 2026-03-24 00:52:13 +01:00
Run new php-cs-fixer against code
This commit is contained in:
@@ -10,7 +10,7 @@ $reader = new Reader('GeoIP2-City.mmdb');
|
||||
$count = 50000;
|
||||
$startTime = microtime(true);
|
||||
for ($i = 0; $i < $count; ++$i) {
|
||||
$ip = long2ip(rand(0, pow(2, 32) - 1));
|
||||
$ip = long2ip(rand(0, 2 ** 32 - 1));
|
||||
$t = $reader->get($ip);
|
||||
if ($i % 1000 === 0) {
|
||||
echo $i . ' ' . $ip . "\n";
|
||||
|
||||
@@ -172,7 +172,7 @@ class Decoder
|
||||
|
||||
for ($i = 0; $i < $size; ++$i) {
|
||||
[$value, $offset] = $this->decode($offset);
|
||||
array_push($array, $value);
|
||||
$array[] = $value;
|
||||
}
|
||||
|
||||
return [$array, $offset];
|
||||
|
||||
Reference in New Issue
Block a user