Run new php-cs-fixer against code

This commit is contained in:
Gregory Oschwald
2020-12-08 07:43:46 -08:00
parent ada723d8b0
commit 2b34280816
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -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];