Code Duplication    Length = 9-9 lines in 4 locations

src/Providers/ApplicationServiceProvider.php 4 locations

@@ 243-251 (lines=9) @@
240
	 *
241
	 * @return  DisplayControllerCreate
242
	 */
243
	public function getDisplayControllerCreateService(Container $container) : DisplayControllerCreate
244
	{
245
		$controller = new DisplayControllerCreate;
246
247
		$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
248
		$controller->setInput($container->get(Input::class));
249
250
		return $controller;
251
	}
252
253
	/**
254
	 * Get the DisplayControllerGet class service
@@ 279-287 (lines=9) @@
276
	 *
277
	 * @return  AppCommands\HelpCommand
278
	 */
279
	public function getHelpCommandService(Container $container) : AppCommands\HelpCommand
280
	{
281
		$command = new AppCommands\HelpCommand;
282
283
		$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
284
		$command->setInput($container->get(Input::class));
285
286
		return $command;
287
	}
288
289
	/**
290
	 * Get the Input\Cli class service
@@ 421-429 (lines=9) @@
418
	 *
419
	 * @return  SubmitControllerGet
420
	 */
421
	public function getSubmitControllerGetService(Container $container) : SubmitControllerGet
422
	{
423
		$controller = new SubmitControllerGet;
424
425
		$controller->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
426
		$controller->setInput($container->get(Input::class));
427
428
		return $controller;
429
	}
430
431
	/**
432
	 * Get the Tags\JoomlaCommand class service
@@ 472-480 (lines=9) @@
469
	 *
470
	 * @return  AppCommands\UpdateCommand
471
	 */
472
	public function getUpdateCommandService(Container $container) : AppCommands\UpdateCommand
473
	{
474
		$command = new AppCommands\UpdateCommand;
475
476
		$command->setApplication($container->get(JoomlaApplication\AbstractApplication::class));
477
		$command->setInput($container->get(Input::class));
478
479
		return $command;
480
	}
481
482
	/**
483
	 * Get the web application service