Code Duplication    Length = 10-10 lines in 3 locations

src/Assert.php 3 locations

@@ 649-658 (lines=10) @@
646
        }
647
    }
648
649
    public static function contains($value, $subString, $message = '')
650
    {
651
        if (false === strpos($value, $subString)) {
652
            static::reportInvalidArgument(sprintf(
653
                $message ?: 'Expected a value to contain %2$s. Got: %s',
654
                static::valueToString($value),
655
                static::valueToString($subString)
656
            ));
657
        }
658
    }
659
660
    public static function notContains($value, $subString, $message = '')
661
    {
@@ 660-669 (lines=10) @@
657
        }
658
    }
659
660
    public static function notContains($value, $subString, $message = '')
661
    {
662
        if (false !== strpos($value, $subString)) {
663
            static::reportInvalidArgument(sprintf(
664
                $message ?: '%2$s was not expected to be contained in a value. Got: %s',
665
                static::valueToString($value),
666
                static::valueToString($subString)
667
            ));
668
        }
669
    }
670
671
    public static function notWhitespaceOnly($value, $message = '')
672
    {
@@ 681-690 (lines=10) @@
678
        }
679
    }
680
681
    public static function startsWith($value, $prefix, $message = '')
682
    {
683
        if (0 !== strpos($value, $prefix)) {
684
            static::reportInvalidArgument(sprintf(
685
                $message ?: 'Expected a value to start with %2$s. Got: %s',
686
                static::valueToString($value),
687
                static::valueToString($prefix)
688
            ));
689
        }
690
    }
691
692
    public static function startsWithLetter($value, $message = '')
693
    {