Code Duplication    Length = 16-16 lines in 4 locations

settings/Controller/MailSettingsController.php 1 location

@@ 62-77 (lines=16) @@
59
	 * @param IMailer $mailer
60
	 * @param string $defaultMailAddress
61
	 */
62
	public function __construct($appName,
63
								IRequest $request,
64
								IL10N $l10n,
65
								IConfig $config,
66
								Session $userSession,
67
								\OC_Defaults $defaults,
68
								IMailer $mailer,
69
								$defaultMailAddress) {
70
		parent::__construct($appName, $request);
71
		$this->l10n = $l10n;
72
		$this->config = $config;
73
		$this->userSession = $userSession;
74
		$this->defaults = $defaults;
75
		$this->mailer = $mailer;
76
		$this->defaultMailAddress = $defaultMailAddress;
77
	}
78
79
	/**
80
	 * Sets the email settings

settings/Controller/AppSettingsController.php 1 location

@@ 73-88 (lines=16) @@
70
	 * @param IAppManager $appManager
71
	 * @param OCSClient $ocsClient
72
	 */
73
	public function __construct($appName,
74
								IRequest $request,
75
								IL10N $l10n,
76
								IConfig $config,
77
								ICacheFactory $cache,
78
								INavigationManager $navigationManager,
79
								IAppManager $appManager,
80
								OCSClient $ocsClient) {
81
		parent::__construct($appName, $request);
82
		$this->l10n = $l10n;
83
		$this->config = $config;
84
		$this->cache = $cache->create($appName);
85
		$this->navigationManager = $navigationManager;
86
		$this->appManager = $appManager;
87
		$this->ocsClient = $ocsClient;
88
	}
89
90
	/**
91
	 * Enables or disables the display of experimental apps

settings/Controller/CheckSetupController.php 1 location

@@ 70-85 (lines=16) @@
67
	 * @param IL10N $l10n
68
	 * @param Checker $checker
69
	 */
70
	public function __construct($AppName,
71
								IRequest $request,
72
								IConfig $config,
73
								IClientService $clientService,
74
								IURLGenerator $urlGenerator,
75
								\OC_Util $util,
76
								IL10N $l10n,
77
								Checker $checker) {
78
		parent::__construct($AppName, $request);
79
		$this->config = $config;
80
		$this->clientService = $clientService;
81
		$this->util = $util;
82
		$this->urlGenerator = $urlGenerator;
83
		$this->l10n = $l10n;
84
		$this->checker = $checker;
85
	}
86
87
	/**
88
	 * Checks if the ownCloud server can connect to the internet using HTTPS and HTTP

settings/Controller/EncryptionController.php 1 location

@@ 69-84 (lines=16) @@
66
	 * @param View $view
67
	 * @param ILogger $logger
68
	 */
69
	public function __construct($appName,
70
								IRequest $request,
71
								IL10N $l10n,
72
								IConfig $config,
73
								Connection $connection,
74
								IUserManager $userManager,
75
								View $view,
76
								ILogger  $logger) {
77
		parent::__construct($appName, $request);
78
		$this->l10n = $l10n;
79
		$this->config = $config;
80
		$this->connection = $connection;
81
		$this->view = $view;
82
		$this->userManager = $userManager;
83
		$this->logger = $logger;
84
	}
85
86
	/**
87
	 * @param IConfig $config