Code Duplication    Length = 9-9 lines in 2 locations

src/helpers/Helper.php 2 locations

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