@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function convert(): int|string |
18 | 18 | { |
19 | - return match ($this->inputFormat) { |
|
19 | + return match($this->inputFormat) { |
|
20 | 20 | IPAddressFormat::BINARY => $this->fromBinaryToLong($this->address), |
21 | 21 | IPAddressFormat::DECIMAL => $this->fromDecimalToLong($this->address), |
22 | 22 | IPAddressFormat::HEXADECIMAL => $this->fromHexadecimalToLong($this->address), |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function convert(): int|string |
18 | 18 | { |
19 | - return match ($this->inputFormat) { |
|
19 | + return match($this->inputFormat) { |
|
20 | 20 | IPAddressFormat::BINARY => $this->withDotNotation |
21 | 21 | ? $this->fromBinaryToDottedHex($this->address) |
22 | 22 | : $this->fromBinaryToHex($this->address), |
@@ -24,8 +24,7 @@ discard block |
||
24 | 24 | ? $this->fromDecimalToDottedHex($this->address) |
25 | 25 | : $this->fromDecimalToHex($this->address), |
26 | 26 | IPAddressFormat::LONG => $this->withDotNotation ? |
27 | - $this->fromLongToDottedHex($this->address) : |
|
28 | - $this->fromLongToHex($this->address), |
|
27 | + $this->fromLongToDottedHex($this->address) : $this->fromLongToHex($this->address), |
|
29 | 28 | default => '', |
30 | 29 | }; |
31 | 30 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function convert(): int|string |
18 | 18 | { |
19 | - return match ($this->inputFormat) { |
|
19 | + return match($this->inputFormat) { |
|
20 | 20 | IPAddressFormat::DECIMAL => $this->withDotNotation |
21 | 21 | ? $this->fromDecimalToDottedBinary($this->address) |
22 | 22 | : $this->fromDecimalToBinary($this->address), |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function convert(): int|string |
18 | 18 | { |
19 | - return match ($this->inputFormat) { |
|
19 | + return match($this->inputFormat) { |
|
20 | 20 | IPAddressFormat::BINARY => $this->fromBinaryToDecimal($this->address), |
21 | 21 | IPAddressFormat::HEXADECIMAL => $this->fromHexadecimalToDecimal($this->address), |
22 | 22 | IPAddressFormat::LONG => $this->fromLongToDecimal($this->address), |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function register() |
21 | 21 | { |
22 | 22 | // Register the main class to use with the facade |
23 | - $this->app->bind('ipv4-address-converter', function () { |
|
23 | + $this->app->bind('ipv4-address-converter', function() { |
|
24 | 24 | return new IPv4AddressConverter(); |
25 | 25 | }); |
26 | 26 | } |