Code Duplication    Length = 11-11 lines in 2 locations

src/Assert.php 2 locations

@@ 1146-1156 (lines=11) @@
1143
     *
1144
     * @throws InvalidArgumentException
1145
     */
1146
    public static function unicodeLetters($value, $message = '')
1147
    {
1148
        static::string($value);
1149
1150
        if (!\preg_match('/^\p{L}+$/u', $value)) {
1151
            static::reportInvalidArgument(\sprintf(
1152
                $message ?: 'Expected a value to contain only Unicode letters. Got: %s',
1153
                static::valueToString($value)
1154
            ));
1155
        }
1156
    }
1157
1158
    /**
1159
     * @param mixed  $value
@@ 1355-1365 (lines=11) @@
1352
     *
1353
     * @throws InvalidArgumentException
1354
     */
1355
    public static function fileExists($value, $message = '')
1356
    {
1357
        static::string($value);
1358
1359
        if (!\file_exists($value)) {
1360
            static::reportInvalidArgument(\sprintf(
1361
                $message ?: 'The file %s does not exist.',
1362
                static::valueToString($value)
1363
            ));
1364
        }
1365
    }
1366
1367
    /**
1368
     * @param mixed  $value