Code Duplication    Length = 9-9 lines in 3 locations

src/Assert.php 3 locations

@@ 474-482 (lines=9) @@
471
        }
472
    }
473
474
    public static function ip($value, $message = '')
475
    {
476
        if (false === filter_var($value, FILTER_VALIDATE_IP)) {
477
            static::reportInvalidArgument(sprintf(
478
                $message ?: 'Expected a value to be an IP. Got: %s',
479
                static::valueToString($value)
480
            ));
481
        }
482
    }
483
484
    public static function ipv4($value, $message = '')
485
    {
@@ 484-492 (lines=9) @@
481
        }
482
    }
483
484
    public static function ipv4($value, $message = '')
485
    {
486
        if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
487
            static::reportInvalidArgument(sprintf(
488
                $message ?: 'Expected a value to be an IPv4. Got: %s',
489
                static::valueToString($value)
490
            ));
491
        }
492
    }
493
494
    public static function ipv6($value, $message = '')
495
    {
@@ 494-502 (lines=9) @@
491
        }
492
    }
493
494
    public static function ipv6($value, $message = '')
495
    {
496
        if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
497
            static::reportInvalidArgument(sprintf(
498
                $message ?: 'Expected a value to be an IPv6. Got %s',
499
                static::valueToString($value)
500
            ));
501
        }
502
    }
503
504
    public static function uniqueValues(array $values, $message = '')
505
    {