Code Duplication    Length = 10-10 lines in 3 locations

src/Assert.php 3 locations

@@ 667-676 (lines=10) @@
664
        }
665
    }
666
667
    public static function contains($value, $subString, $message = '')
668
    {
669
        if (false === strpos($value, $subString)) {
670
            static::reportInvalidArgument(sprintf(
671
                $message ?: 'Expected a value to contain %2$s. Got: %s',
672
                static::valueToString($value),
673
                static::valueToString($subString)
674
            ));
675
        }
676
    }
677
678
    public static function notContains($value, $subString, $message = '')
679
    {
@@ 678-687 (lines=10) @@
675
        }
676
    }
677
678
    public static function notContains($value, $subString, $message = '')
679
    {
680
        if (false !== strpos($value, $subString)) {
681
            static::reportInvalidArgument(sprintf(
682
                $message ?: '%2$s was not expected to be contained in a value. Got: %s',
683
                static::valueToString($value),
684
                static::valueToString($subString)
685
            ));
686
        }
687
    }
688
689
    public static function notWhitespaceOnly($value, $message = '')
690
    {
@@ 699-708 (lines=10) @@
696
        }
697
    }
698
699
    public static function startsWith($value, $prefix, $message = '')
700
    {
701
        if (0 !== strpos($value, $prefix)) {
702
            static::reportInvalidArgument(sprintf(
703
                $message ?: 'Expected a value to start with %2$s. Got: %s',
704
                static::valueToString($value),
705
                static::valueToString($prefix)
706
            ));
707
        }
708
    }
709
710
    public static function startsWithLetter($value, $message = '')
711
    {