Code Duplication    Length = 11-11 lines in 2 locations

src/Assert.php 2 locations

@@ 724-734 (lines=11) @@
721
        }
722
    }
723
724
    public static function unicodeLetters($value, $message = '')
725
    {
726
        static::string($value);
727
728
        if (!preg_match('/^\p{L}+$/u', $value)) {
729
            static::reportInvalidArgument(sprintf(
730
                $message ?: 'Expected a value to contain only Unicode letters. Got: %s',
731
                static::valueToString($value)
732
            ));
733
        }
734
    }
735
736
    public static function alpha($value, $message = '')
737
    {
@@ 858-868 (lines=11) @@
855
        }
856
    }
857
858
    public static function fileExists($value, $message = '')
859
    {
860
        static::string($value);
861
862
        if (!file_exists($value)) {
863
            static::reportInvalidArgument(sprintf(
864
                $message ?: 'The file %s does not exist.',
865
                static::valueToString($value)
866
            ));
867
        }
868
    }
869
870
    public static function file($value, $message = '')
871
    {