Code Duplication    Length = 11-11 lines in 2 locations

helpers.php 1 location

@@ 32-42 (lines=11) @@
29
     * @param  $value
30
     * @return string
31
     */
32
    function itemIcon($value)
33
    {
34
35
        $tag = $value['tag'];
36
37
        if($value['tag'] === null) {
38
            $tag = 'i';
39
        }
40
41
        return '<' . $tag . ' class="' . $value['value'] . '"></' . $tag . '>';
42
    }
43
}
44
45
if(! function_exists('newTab')){

src/SideNavHelpers.php 1 location

@@ 43-53 (lines=11) @@
40
     * @param  $value
41
     * @return string
42
     */
43
    public static function itemIcon($value)
44
    {
45
46
        $tag = $value['tag'];
47
48
        if($value['tag'] === null) {
49
            $tag = 'i';
50
        }
51
52
        return '<' . $tag . ' class="' . $value['value'] . '"></' . $tag . '>';
53
    }
54
55
    /**
56
     * Print item new_tab option