Code Duplication    Length = 11-11 lines in 2 locations

src/Assert.php 2 locations

@@ 896-906 (lines=11) @@
893
        }
894
    }
895
896
    public static function file($value, $message = '')
897
    {
898
        static::fileExists($value, $message);
899
900
        if (!is_file($value)) {
901
            static::reportInvalidArgument(sprintf(
902
                $message ?: 'The path %s is not a file.',
903
                static::valueToString($value)
904
            ));
905
        }
906
    }
907
908
    public static function directory($value, $message = '')
909
    {
@@ 908-918 (lines=11) @@
905
        }
906
    }
907
908
    public static function directory($value, $message = '')
909
    {
910
        static::fileExists($value, $message);
911
912
        if (!is_dir($value)) {
913
            static::reportInvalidArgument(sprintf(
914
                $message ?: 'The path %s is no directory.',
915
                static::valueToString($value)
916
            ));
917
        }
918
    }
919
920
    public static function readable($value, $message = '')
921
    {