Code Duplication    Length = 9-12 lines in 7 locations

src/Providers/ApplicationServiceProvider.php 7 locations

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