Code Duplication    Length = 11-11 lines in 2 locations

src/Assert.php 2 locations

@@ 1073-1083 (lines=11) @@
1070
     * @param mixed  $value
1071
     * @param string $message
1072
     */
1073
    public static function unicodeLetters($value, $message = '')
1074
    {
1075
        static::string($value);
1076
1077
        if (!\preg_match('/^\p{L}+$/u', $value)) {
1078
            static::reportInvalidArgument(\sprintf(
1079
                $message ?: 'Expected a value to contain only Unicode letters. Got: %s',
1080
                static::valueToString($value)
1081
            ));
1082
        }
1083
    }
1084
1085
    /**
1086
     * @param mixed  $value
@@ 1260-1270 (lines=11) @@
1257
     * @param mixed  $value
1258
     * @param string $message
1259
     */
1260
    public static function fileExists($value, $message = '')
1261
    {
1262
        static::string($value);
1263
1264
        if (!\file_exists($value)) {
1265
            static::reportInvalidArgument(\sprintf(
1266
                $message ?: 'The file %s does not exist.',
1267
                static::valueToString($value)
1268
            ));
1269
        }
1270
    }
1271
1272
    /**
1273
     * @param mixed  $value