Code Duplication    Length = 8-8 lines in 3 locations

src/Traits/HasAssets.php 3 locations

@@ 189-196 (lines=8) @@
186
     *
187
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
188
     */
189
    public static function script($script = '')
190
    {
191
        if (!empty($script)) {
192
            return self::$script = array_merge(self::$script, (array) $script);
193
        }
194
195
        return view('admin::partials.script', ['script' => array_unique(self::$script)]);
196
    }
197
198
    /**
199
     * @param string $style
@@ 203-210 (lines=8) @@
200
     *
201
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
202
     */
203
    public static function style($style = '')
204
    {
205
        if (!empty($style)) {
206
            return self::$style = array_merge(self::$style, (array) $style);
207
        }
208
209
        return view('admin::partials.style', ['style' => array_unique(self::$style)]);
210
    }
211
212
    /**
213
     * @param string $html
@@ 217-224 (lines=8) @@
214
     *
215
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
216
     */
217
    public static function html($html = '')
218
    {
219
        if (!empty($html)) {
220
            return self::$html = array_merge(self::$html, (array) $html);
221
        }
222
223
        return view('admin::partials.html', ['html' => array_unique(self::$html)]);
224
    }
225
226
    /**
227
     * @param string $key