Code Duplication    Length = 8-8 lines in 2 locations

src/Traits/HasAssets.php 2 locations

@@ 243-250 (lines=8) @@
240
     *
241
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
242
     */
243
    public static function style($style = '')
244
    {
245
        if (!empty($style)) {
246
            return self::$style = array_merge(self::$style, (array) $style);
247
        }
248
249
        return view('admin::partials.style', ['style' => array_unique(self::$style)]);
250
    }
251
252
    /**
253
     * @param string $html
@@ 257-264 (lines=8) @@
254
     *
255
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
256
     */
257
    public static function html($html = '')
258
    {
259
        if (!empty($html)) {
260
            return self::$html = array_merge(self::$html, (array) $html);
261
        }
262
263
        return view('admin::partials.html', ['html' => array_unique(self::$html)]);
264
    }
265
266
    /**
267
     * @param string $key