Code Duplication    Length = 9-9 lines in 2 locations

src/helpers/Helper.php 2 locations

@@ 48-56 (lines=9) @@
45
        return trim($file, '.');
46
    }
47
48
    public static function csplit($input, $delimiter = ',')
49
    {
50
        if (is_array($input)) {
51
            return $input;
52
        }
53
        $res = explode($delimiter, $input);
54
55
        return array_values(array_filter(array_map('trim', $res)));
56
    }
57
58
    public static function asplit($input)
59
    {
@@ 58-66 (lines=9) @@
55
        return array_values(array_filter(array_map('trim', $res)));
56
    }
57
58
    public static function asplit($input)
59
    {
60
        if (is_array($input)) {
61
            return $input;
62
        }
63
        $res = preg_split('/[\s,]+/', $input);
64
65
        return array_values(array_filter(array_map('trim', $res)));
66
    }
67
68
    public static function ksplit($input, $delimiter = ',')
69
    {