Code Duplication    Length = 9-12 lines in 8 locations

src/Providers/ApplicationServiceProvider.php 8 locations

@@ 199-207 (lines=9) @@
196
197
		$container->share(
198
			InstallCommand::class,
199
			function (Container $container)
200
			{
201
				$command = new InstallCommand($container->get(DatabaseDriver::class));
202
203
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
204
				$command->setInput($container->get(Input::class));
205
206
				return $command;
207
			},
208
			true
209
		);
210
@@ 213-221 (lines=9) @@
210
211
		$container->share(
212
			SnapshotCommand::class,
213
			function (Container $container)
214
			{
215
				$command = new SnapshotCommand($container->get(StatsJsonView::class));
216
217
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
218
				$command->setInput($container->get(Input::class));
219
220
				return $command;
221
			},
222
			true
223
		);
224
@@ 241-249 (lines=9) @@
238
239
		$container->share(
240
			ClearCommand::class,
241
			function (Container $container)
242
			{
243
				$command = new ClearCommand($container->get(Cache::class));
244
245
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
246
				$command->setInput($container->get(Input::class));
247
248
				return $command;
249
			},
250
			true
251
		);
252
@@ 270-278 (lines=9) @@
267
268
		$container->share(
269
			StatusCommand::class,
270
			function (Container $container)
271
			{
272
				$command = new StatusCommand($container->get(Migrations::class));
273
274
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
275
				$command->setInput($container->get(Input::class));
276
277
				return $command;
278
			},
279
			true
280
		);
281
@@ 284-292 (lines=9) @@
281
282
		$container->share(
283
			JoomlaCommand::class,
284
			function (Container $container)
285
			{
286
				$command = new JoomlaCommand($container->get(GitHub::class));
287
288
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
289
				$command->setInput($container->get(Input::class));
290
291
				return $command;
292
			},
293
			true
294
		);
295
@@ 298-306 (lines=9) @@
295
296
		$container->share(
297
			PhpCommand::class,
298
			function (Container $container)
299
			{
300
				$command = new PhpCommand($container->get(GitHub::class));
301
302
				$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
303
				$command->setInput($container->get(Input::class));
304
305
				return $command;
306
			},
307
			true
308
		);
309
@@ 312-323 (lines=12) @@
309
310
		$container->share(
311
			DisplayControllerGet::class,
312
			function (Container $container)
313
			{
314
				$controller = new DisplayControllerGet(
315
					$container->get(StatsJsonView::class),
316
					$container->get(Cache::class)
317
				);
318
319
				$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
320
				$controller->setInput($container->get(Input::class));
321
322
				return $controller;
323
			},
324
			true
325
		);
326
@@ 329-339 (lines=11) @@
326
327
		$container->share(
328
			SubmitControllerCreate::class,
329
			function (Container $container)
330
			{
331
				$controller = new SubmitControllerCreate(
332
					$container->get(StatsModel::class)
333
				);
334
335
				$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
336
				$controller->setInput($container->get(Input::class));
337
338
				return $controller;
339
			},
340
			true
341
		);
342