Code Duplication    Length = 9-9 lines in 4 locations

src/Providers/ApplicationServiceProvider.php 4 locations

@@ 244-252 (lines=9) @@
241
	 *
242
	 * @return  DisplayControllerCreate
243
	 */
244
	public function getDisplayControllerCreateService(Container $container) : DisplayControllerCreate
245
	{
246
		$controller = new DisplayControllerCreate;
247
248
		$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
249
		$controller->setInput($container->get(Input::class));
250
251
		return $controller;
252
	}
253
254
	/**
255
	 * Get the DisplayControllerGet class service
@@ 280-288 (lines=9) @@
277
	 *
278
	 * @return  AppCommands\HelpCommand
279
	 */
280
	public function getHelpCommandService(Container $container) : AppCommands\HelpCommand
281
	{
282
		$command = new AppCommands\HelpCommand;
283
284
		$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
285
		$command->setInput($container->get(Input::class));
286
287
		return $command;
288
	}
289
290
	/**
291
	 * Get the Input\Cli class service
@@ 439-447 (lines=9) @@
436
	 *
437
	 * @return  SubmitControllerGet
438
	 */
439
	public function getSubmitControllerGetService(Container $container) : SubmitControllerGet
440
	{
441
		$controller = new SubmitControllerGet;
442
443
		$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
444
		$controller->setInput($container->get(Input::class));
445
446
		return $controller;
447
	}
448
449
	/**
450
	 * Get the Tags\JoomlaCommand class service
@@ 490-498 (lines=9) @@
487
	 *
488
	 * @return  AppCommands\UpdateCommand
489
	 */
490
	public function getUpdateCommandService(Container $container) : AppCommands\UpdateCommand
491
	{
492
		$command = new AppCommands\UpdateCommand;
493
494
		$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
495
		$command->setInput($container->get(Input::class));
496
497
		return $command;
498
	}
499
500
	/**
501
	 * Get the web application service