Code Duplication    Length = 16-16 lines in 2 locations

src/helpers.php 2 locations

@@ 88-103 (lines=16) @@
85
    }
86
}
87
88
if (!function_exists('admin_toastr')) {
89
90
    /**
91
     * Flash a toastr message bag to session.
92
     *
93
     * @param string $message
94
     * @param string $type
95
     * @param array  $options
96
     */
97
    function admin_toastr($message = '', $type = 'success', $options = [])
98
    {
99
        $toastr = new MessageBag(get_defined_vars());
100
101
        session()->flash('toastr', $toastr);
102
    }
103
}
104
105
if (!function_exists('admin_success')) {
106
@@ 147-162 (lines=16) @@
144
    }
145
}
146
147
if (!function_exists('admin_info')) {
148
149
    /**
150
     * Flash a message bag to session.
151
     *
152
     * @param string $title
153
     * @param string $message
154
     * @param string $type
155
     */
156
    function admin_info($title, $message = '', $type = 'info')
157
    {
158
        $message = new MessageBag(get_defined_vars());
159
160
        session()->flash($type, $message);
161
    }
162
}
163
164
if (!function_exists('admin_asset')) {
165