Code Duplication    Length = 10-10 lines in 3 locations

src/Assert.php 3 locations

@@ 632-641 (lines=10) @@
629
        }
630
    }
631
632
    public static function contains($value, $subString, $message = '')
633
    {
634
        if (false === strpos($value, $subString)) {
635
            static::reportInvalidArgument(sprintf(
636
                $message ?: 'Expected a value to contain %2$s. Got: %s',
637
                static::valueToString($value),
638
                static::valueToString($subString)
639
            ));
640
        }
641
    }
642
643
    public static function notContains($value, $subString, $message = '')
644
    {
@@ 643-652 (lines=10) @@
640
        }
641
    }
642
643
    public static function notContains($value, $subString, $message = '')
644
    {
645
        if (false !== strpos($value, $subString)) {
646
            static::reportInvalidArgument(sprintf(
647
                $message ?: '%2$s was not expected to be contained in a value. Got: %s',
648
                static::valueToString($value),
649
                static::valueToString($subString)
650
            ));
651
        }
652
    }
653
654
    public static function notWhitespaceOnly($value, $message = '')
655
    {
@@ 664-673 (lines=10) @@
661
        }
662
    }
663
664
    public static function startsWith($value, $prefix, $message = '')
665
    {
666
        if (0 !== strpos($value, $prefix)) {
667
            static::reportInvalidArgument(sprintf(
668
                $message ?: 'Expected a value to start with %2$s. Got: %s',
669
                static::valueToString($value),
670
                static::valueToString($prefix)
671
            ));
672
        }
673
    }
674
675
    public static function startsWithLetter($value, $message = '')
676
    {