Code Duplication    Length = 26-26 lines in 2 locations

settings/Controller/AppSettingsController.php 1 location

@@ 102-127 (lines=26) @@
99
	 * @param IURLGenerator $urlGenerator
100
	 * @param ILogger $logger
101
	 */
102
	public function __construct(string $appName,
103
								IRequest $request,
104
								IL10N $l10n,
105
								IConfig $config,
106
								INavigationManager $navigationManager,
107
								IAppManager $appManager,
108
								CategoryFetcher $categoryFetcher,
109
								AppFetcher $appFetcher,
110
								IFactory $l10nFactory,
111
								BundleFetcher $bundleFetcher,
112
								Installer $installer,
113
								IURLGenerator $urlGenerator,
114
								ILogger $logger) {
115
		parent::__construct($appName, $request);
116
		$this->l10n = $l10n;
117
		$this->config = $config;
118
		$this->navigationManager = $navigationManager;
119
		$this->appManager = $appManager;
120
		$this->categoryFetcher = $categoryFetcher;
121
		$this->appFetcher = $appFetcher;
122
		$this->l10nFactory = $l10nFactory;
123
		$this->bundleFetcher = $bundleFetcher;
124
		$this->installer = $installer;
125
		$this->urlGenerator = $urlGenerator;
126
		$this->logger = $logger;
127
	}
128
129
	/**
130
	 * @NoCSRFRequired

settings/Controller/CheckSetupController.php 1 location

@@ 85-110 (lines=26) @@
82
	/** @var IDateTimeFormatter */
83
	private $dateTimeFormatter;
84
85
	public function __construct($AppName,
86
								IRequest $request,
87
								IConfig $config,
88
								IClientService $clientService,
89
								IURLGenerator $urlGenerator,
90
								\OC_Util $util,
91
								IL10N $l10n,
92
								Checker $checker,
93
								ILogger $logger,
94
								EventDispatcherInterface $dispatcher,
95
								IDBConnection $db,
96
								ILockingProvider $lockingProvider,
97
								IDateTimeFormatter $dateTimeFormatter) {
98
		parent::__construct($AppName, $request);
99
		$this->config = $config;
100
		$this->clientService = $clientService;
101
		$this->util = $util;
102
		$this->urlGenerator = $urlGenerator;
103
		$this->l10n = $l10n;
104
		$this->checker = $checker;
105
		$this->logger = $logger;
106
		$this->dispatcher = $dispatcher;
107
		$this->db = $db;
108
		$this->lockingProvider = $lockingProvider;
109
		$this->dateTimeFormatter = $dateTimeFormatter;
110
	}
111
112
	/**
113
	 * Checks if the server can connect to the internet using HTTPS and HTTP