Code Duplication    Length = 10-10 lines in 2 locations

src/Assert.php 2 locations

@@ 473-482 (lines=10) @@
470
        }
471
    }
472
473
    public static function contains($value, $subString, $message = '')
474
    {
475
        if (false === strpos($value, $subString)) {
476
            static::reportInvalidArgument(sprintf(
477
                $message ?: 'Expected a value to contain %2$s. Got: %s',
478
                static::valueToString($value),
479
                static::valueToString($subString)
480
            ));
481
        }
482
    }
483
484
    public static function startsWith($value, $prefix, $message = '')
485
    {
@@ 484-493 (lines=10) @@
481
        }
482
    }
483
484
    public static function startsWith($value, $prefix, $message = '')
485
    {
486
        if (0 !== strpos($value, $prefix)) {
487
            static::reportInvalidArgument(sprintf(
488
                $message ?: 'Expected a value to start with %2$s. Got: %s',
489
                static::valueToString($value),
490
                static::valueToString($prefix)
491
            ));
492
        }
493
    }
494
495
    public static function startsWithLetter($value, $message = '')
496
    {