Code Duplication    Length = 9-12 lines in 6 locations

src/Providers/ApplicationServiceProvider.php 6 locations

@@ 187-195 (lines=9) @@
184
185
		$container->share(
186
			InstallCommand::class,
187
			function (Container $container)
188
			{
189
				$command = new InstallCommand($container->get(DatabaseDriver::class));
190
191
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
192
				$command->setInput($container->get(Input::class));
193
194
				return $command;
195
			},
196
			true
197
		);
198
@@ 201-209 (lines=9) @@
198
199
		$container->share(
200
			SnapshotCommand::class,
201
			function (Container $container)
202
			{
203
				$command = new SnapshotCommand($container->get(StatsJsonView::class));
204
205
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
206
				$command->setInput($container->get(Input::class));
207
208
				return $command;
209
			},
210
			true
211
		);
212
@@ 229-237 (lines=9) @@
226
227
		$container->share(
228
			ClearCommand::class,
229
			function (Container $container)
230
			{
231
				$command = new ClearCommand($container->get(Cache::class));
232
233
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
234
				$command->setInput($container->get(Input::class));
235
236
				return $command;
237
			},
238
			true
239
		);
240
@@ 258-266 (lines=9) @@
255
256
		$container->share(
257
			StatusCommand::class,
258
			function (Container $container)
259
			{
260
				$command = new StatusCommand($container->get(Migrations::class));
261
262
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
263
				$command->setInput($container->get(Input::class));
264
265
				return $command;
266
			},
267
			true
268
		);
269
@@ 272-283 (lines=12) @@
269
270
		$container->share(
271
			DisplayControllerGet::class,
272
			function (Container $container)
273
			{
274
				$controller = new DisplayControllerGet(
275
					$container->get(StatsJsonView::class),
276
					$container->get(Cache::class)
277
				);
278
279
				$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
280
				$controller->setInput($container->get(Input::class));
281
282
				return $controller;
283
			},
284
			true
285
		);
286
@@ 289-299 (lines=11) @@
286
287
		$container->share(
288
			SubmitControllerCreate::class,
289
			function (Container $container)
290
			{
291
				$controller = new SubmitControllerCreate(
292
					$container->get(StatsModel::class)
293
				);
294
295
				$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
296
				$controller->setInput($container->get(Input::class));
297
298
				return $controller;
299
			},
300
			true
301
		);
302