Code Duplication    Length = 9-9 lines in 3 locations

src/Assert.php 3 locations

@@ 455-463 (lines=9) @@
452
        }
453
    }
454
455
    public static function ip($value, $message = '')
456
    {
457
        if (false === filter_var($value, FILTER_VALIDATE_IP)) {
458
            static::reportInvalidArgument(sprintf(
459
                $message ?: 'Expected a value to be an IP. Got: %s',
460
                static::valueToString($value)
461
            ));
462
        }
463
    }
464
465
    public static function ipv4($value, $message = '')
466
    {
@@ 465-473 (lines=9) @@
462
        }
463
    }
464
465
    public static function ipv4($value, $message = '')
466
    {
467
        if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
468
            static::reportInvalidArgument(sprintf(
469
                $message ?: 'Expected a value to be an IPv4. Got: %s',
470
                static::valueToString($value)
471
            ));
472
        }
473
    }
474
475
    public static function ipv6($value, $message = '')
476
    {
@@ 475-483 (lines=9) @@
472
        }
473
    }
474
475
    public static function ipv6($value, $message = '')
476
    {
477
        if (false === filter_var($value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
478
            static::reportInvalidArgument(sprintf(
479
                $message ?: 'Expected a value to be an IPv6. Got %s',
480
                static::valueToString($value)
481
            ));
482
        }
483
    }
484
485
    public static function eq($value, $value2, $message = '')
486
    {