Code Duplication    Length = 8-8 lines in 2 locations

src/Traits/HasAssets.php 2 locations

@@ 184-191 (lines=8) @@
181
     *
182
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
183
     */
184
    public static function script($script = '')
185
    {
186
        if (!empty($script)) {
187
            return self::$script = array_merge(self::$script, (array) $script);
188
        }
189
190
        return view('admin::partials.script', ['script' => array_unique(self::$script)]);
191
    }
192
193
    /**
194
     * @param string $style
@@ 198-205 (lines=8) @@
195
     *
196
     * @return array|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
197
     */
198
    public static function style($style = '')
199
    {
200
        if (!empty($style)) {
201
            return self::$style = array_merge(self::$style, (array) $style);
202
        }
203
204
        return view('admin::partials.style', ['style' => array_unique(self::$style)]);
205
    }
206
207
    /**
208
     * @param string $key