Code Duplication    Length = 9-11 lines in 6 locations

lib/Controller/ApiController.php 1 location

@@ 75-83 (lines=9) @@
72
	 * @param SearchService $searchService
73
	 * @param MiscService $miscService
74
	 */
75
	public function __construct(
76
		IRequest $request, ConfigService $configService, SearchService $searchService,
77
		MiscService $miscService
78
	) {
79
		parent::__construct(Application::APP_NAME, $request);
80
		$this->searchService = $searchService;
81
		$this->configService = $configService;
82
		$this->miscService = $miscService;
83
	}
84
85
86
	/**

lib/Controller/NavigationController.php 1 location

@@ 74-83 (lines=10) @@
71
	 * @param ConfigService $configService
72
	 * @param MiscService $miscService
73
	 */
74
	public function __construct(
75
		IRequest $request, IConfig $config, IFullTextSearchManager $fullTextSearchManager,
76
		ConfigService $configService, MiscService $miscService
77
	) {
78
		parent::__construct(Application::APP_NAME, $request);
79
		$this->config = $config;
80
		$this->fullTextSearchManager = $fullTextSearchManager;
81
		$this->configService = $configService;
82
		$this->miscService = $miscService;
83
	}
84
85
86
	/**

lib/Controller/SettingsController.php 1 location

@@ 70-78 (lines=9) @@
67
	 * @param SettingsService $settingsService
68
	 * @param MiscService $miscService
69
	 */
70
	public function __construct(
71
		IRequest $request, ConfigService $configService, SettingsService $settingsService,
72
		MiscService $miscService
73
	) {
74
		parent::__construct(Application::APP_NAME, $request);
75
		$this->configService = $configService;
76
		$this->settingsService = $settingsService;
77
		$this->miscService = $miscService;
78
	}
79
80
81
	/**

lib/Controller/TemplatesController.php 1 location

@@ 78-87 (lines=10) @@
75
	 * @param ProviderService $providerService
76
	 * @param MiscService $miscService
77
	 */
78
	public function __construct(
79
		IRequest $request, IConfig $config, ConfigService $configService,
80
		ProviderService $providerService, MiscService $miscService
81
	) {
82
		parent::__construct(Application::APP_NAME, $request);
83
		$this->config = $config;
84
		$this->configService = $configService;
85
		$this->providerService = $providerService;
86
		$this->miscService = $miscService;
87
	}
88
89
90
	/**

lib/Command/Check.php 1 location

@@ 68-78 (lines=11) @@
65
	 * @param ProviderService $providerService
66
	 * @param MiscService $miscService
67
	 */
68
	public function __construct(
69
		ConfigService $configService, PlatformService $platformService,
70
		ProviderService $providerService, MiscService $miscService
71
	) {
72
		parent::__construct();
73
74
		$this->configService = $configService;
75
		$this->platformService = $platformService;
76
		$this->providerService = $providerService;
77
		$this->miscService = $miscService;
78
	}
79
80
81
	/**

lib/Command/DocumentIndex.php 1 location

@@ 70-78 (lines=9) @@
67
	 * @param PlatformService $platformService
68
	 * @param MiscService $miscService
69
	 */
70
	public function __construct(
71
		ProviderService $providerService, PlatformService $platformService, MiscService $miscService
72
	) {
73
		parent::__construct();
74
75
		$this->providerService = $providerService;
76
		$this->platformService = $platformService;
77
		$this->miscService = $miscService;
78
	}
79
80
81
	/**