Code Duplication    Length = 9-9 lines in 3 locations

src/Assert.php 3 locations

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