Code Duplication    Length = 11-11 lines in 2 locations

src/Assert.php 2 locations

@@ 1026-1036 (lines=11) @@
1023
     * @param mixed  $value
1024
     * @param string $message
1025
     */
1026
    public static function unicodeLetters($value, $message = '')
1027
    {
1028
        static::string($value);
1029
1030
        if (!\preg_match('/^\p{L}+$/u', $value)) {
1031
            static::reportInvalidArgument(\sprintf(
1032
                $message ?: 'Expected a value to contain only Unicode letters. Got: %s',
1033
                static::valueToString($value)
1034
            ));
1035
        }
1036
    }
1037
1038
    /**
1039
     * @param mixed  $value
@@ 1213-1223 (lines=11) @@
1210
     * @param mixed  $value
1211
     * @param string $message
1212
     */
1213
    public static function fileExists($value, $message = '')
1214
    {
1215
        static::string($value);
1216
1217
        if (!\file_exists($value)) {
1218
            static::reportInvalidArgument(\sprintf(
1219
                $message ?: 'The file %s does not exist.',
1220
                static::valueToString($value)
1221
            ));
1222
        }
1223
    }
1224
1225
    /**
1226
     * @param mixed  $value