Code Duplication    Length = 8-8 lines in 2 locations

src/AdminServiceProvider.php 2 locations

@@ 142-149 (lines=8) @@
139
     */
140
    protected function macroRouter()
141
    {
142
        Router::macro('content', function ($uri, $content, $options = []) {
143
            return $this->match(['GET', 'HEAD'], $uri, function (Content $layout) use ($content, $options) {
144
                return $layout
145
                    ->title(Arr::get($options, 'title', ' '))
146
                    ->description(Arr::get($options, 'desc', ' '))
147
                    ->body($content);
148
            });
149
        });
150
151
        Router::macro('component', function ($uri, $component, $data = [], $options = []) {
152
            return $this->match(['GET', 'HEAD'], $uri, function (Content $layout) use ($component, $data, $options) {
@@ 151-158 (lines=8) @@
148
            });
149
        });
150
151
        Router::macro('component', function ($uri, $component, $data = [], $options = []) {
152
            return $this->match(['GET', 'HEAD'], $uri, function (Content $layout) use ($component, $data, $options) {
153
                return $layout
154
                    ->title(Arr::get($options, 'title', ' '))
155
                    ->description(Arr::get($options, 'desc', ' '))
156
                    ->component($component, $data);
157
            });
158
        });
159
    }
160
161
    /**