Code Duplication    Length = 9-9 lines in 2 locations

src/ArtificerServiceProvider.php 2 locations

@@ 153-161 (lines=9) @@
150
            return new Model(new ModelSchema(new ModelObtainer()));
151
        });
152
153
		App::singleton('ArtificerWidgetManager', function() {
154
            $widgetsConfig = $this->getConfigPath() . 'extensions/widgets.php';
155
156
            return new WidgetManager(
157
                new FileInstaller(new FileWriter(), $widgetsConfig),
158
                new Booter(),
159
                new Event(app('events'))
160
            );
161
        });
162
163
		App::singleton('ArtificerPluginManager', function() {
164
            $pluginsConfig = $this->getConfigPath() . 'extensions/plugins.php';
@@ 163-171 (lines=9) @@
160
            );
161
        });
162
163
		App::singleton('ArtificerPluginManager', function() {
164
            $pluginsConfig = $this->getConfigPath() . 'extensions/plugins.php';
165
166
            return new PluginManager(
167
                new FileInstaller(new FileWriter(), $pluginsConfig),
168
                new \Mascame\Artificer\Plugin\Booter(),
169
                new Event(app('events'))
170
            );
171
		});
172
173
        App::singleton('ArtificerAssetManager', function() {
174
            return \Assets::config(array_merge([