Code Duplication    Length = 10-10 lines in 2 locations

src/Toolbar/ToolbarHelper.php 2 locations

@@ 55-64 (lines=10) @@
52
     * @param string $url
53
     * @param array $options
54
     */
55
    public static function link($title, $url, array $options = [])
56
    {
57
        $toolbar = Toolbar::getInstance(self::$_toolbar);
58
        $options += [
59
            'icon' => 'link',
60
            'button' => 'grey lighten-3'
61
        ];
62
63
        $toolbar->appendButton('Core.link', $title, $url, $options);
64
    }
65
66
    /**
67
     * Create add link.
@@ 74-83 (lines=10) @@
71
     * @param string $icon
72
     * @param array $options
73
     */
74
    public static function add($title = null, $url = ['action' => 'add'], $icon = 'plus', array $options = [])
75
    {
76
        $toolbar = Toolbar::getInstance(self::$_toolbar);
77
        $options += [
78
            'icon' => $icon,
79
            'button' => 'green lighten-2'
80
        ];
81
82
        $toolbar->appendButton('Core.link', $title, $url, $options);
83
    }
84
85
    /**
86
     * Delete for process form.