Passed
Pull Request — master (#3)
by lee
11:28
created
src/Converters/LongIPv4AddressConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Converters/HexadecimalIPv4AddressConverter.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Converters/BinaryIPv4AddressConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Converters/DecimalIPv4AddressConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/ServiceProviders/IPv4AddressConverterServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.