X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4e8995c3d0e4c738219fdfa4080b22cb40607bd2..refs/pull/3918/head:/app/Actions/IpFormatter.php diff --git a/app/Actions/IpFormatter.php b/app/Actions/IpFormatter.php index 3ca4b6e66..21616ed29 100644 --- a/app/Actions/IpFormatter.php +++ b/app/Actions/IpFormatter.php @@ -25,7 +25,7 @@ class IpFormatter protected function maskIpv4(): string { $exploded = $this->explodeAndExpandIp('.', 4); - $maskGroupCount = min( 4 - $this->precision, count($exploded)); + $maskGroupCount = min(4 - $this->precision, count($exploded)); for ($i = 0; $i < $maskGroupCount; $i++) { $exploded[3 - $i] = 'x'; @@ -78,4 +78,4 @@ class IpFormatter return new self($ip, config('app.ip_address_precision')); } -} \ No newline at end of file +}