Code Duplication    Length = 7-15 lines in 6 locations

apps/encryption/lib/Command/MigrateKeys.php 1 location

@@ 57-69 (lines=13) @@
54
	 * @param IConfig $config
55
	 * @param ILogger $logger
56
	 */
57
	public function __construct(IUserManager $userManager,
58
								View $view,
59
								IDBConnection $connection,
60
								IConfig $config,
61
								ILogger $logger) {
62
63
		$this->userManager = $userManager;
64
		$this->view = $view;
65
		$this->connection = $connection;
66
		$this->config = $config;
67
		$this->logger = $logger;
68
		parent::__construct();
69
	}
70
71
	protected function configure() {
72
		$this

apps/files_external/lib/Migration/StorageMigrator.php 1 location

@@ 83-97 (lines=15) @@
80
	 * @param ILogger $logger
81
	 * @param IUserMountCache $userMountCache
82
	 */
83
	public function __construct(
84
		BackendService $backendService,
85
		DBConfigService $dbConfig,
86
		IConfig $config,
87
		IDBConnection $connection,
88
		ILogger $logger,
89
		IUserMountCache $userMountCache
90
	) {
91
		$this->backendService = $backendService;
92
		$this->dbConfig = $dbConfig;
93
		$this->config = $config;
94
		$this->connection = $connection;
95
		$this->logger = $logger;
96
		$this->userMountCache = $userMountCache;
97
	}
98
99
	private function migrate(LegacyStoragesService $legacyService, StoragesService $storageService) {
100
		$existingStorage = $legacyService->getAllStorages();

core/Command/Db/ConvertMysqlToMB4.php 1 location

@@ 55-61 (lines=7) @@
52
	 * @param IURLGenerator $urlGenerator
53
	 * @param ILogger $logger
54
	 */
55
	public function __construct(IConfig $config, IDBConnection $connection, IURLGenerator $urlGenerator, ILogger $logger) {
56
		$this->config = $config;
57
		$this->connection = $connection;
58
		$this->urlGenerator = $urlGenerator;
59
		$this->logger = $logger;
60
		parent::__construct();
61
	}
62
63
	protected function configure() {
64
		$this

lib/private/Security/CertificateManager.php 1 location

@@ 70-80 (lines=11) @@
67
	 * @param ILogger $logger
68
	 * @param ISecureRandom $random
69
	 */
70
	public function __construct($uid,
71
								\OC\Files\View $view,
72
								IConfig $config,
73
								ILogger $logger,
74
								ISecureRandom $random) {
75
		$this->uid = $uid;
76
		$this->view = $view;
77
		$this->config = $config;
78
		$this->logger = $logger;
79
		$this->random = $random;
80
	}
81
82
	/**
83
	 * Returns all certificates trusted by the user

lib/private/Setup.php 1 location

@@ 75-88 (lines=14) @@
72
	 * @param ILogger $logger
73
	 * @param ISecureRandom $random
74
	 */
75
	public function __construct(SystemConfig $config,
76
						 IniGetWrapper $iniWrapper,
77
						 IL10N $l10n,
78
						 Defaults $defaults,
79
						 ILogger $logger,
80
						 ISecureRandom $random
81
		) {
82
		$this->config = $config;
83
		$this->iniWrapper = $iniWrapper;
84
		$this->l10n = $l10n;
85
		$this->defaults = $defaults;
86
		$this->logger = $logger;
87
		$this->random = $random;
88
	}
89
90
	static protected $dbSetupClasses = [
91
		'mysql' => \OC\Setup\MySQL::class,

lib/private/Mail/Mailer.php 1 location

@@ 74-84 (lines=11) @@
71
	 * @param IURLGenerator $urlGenerator
72
	 * @param IL10N $l10n
73
	 */
74
	public function __construct(IConfig $config,
75
						 ILogger $logger,
76
						 Defaults $defaults,
77
						 IURLGenerator $urlGenerator,
78
						 IL10N $l10n) {
79
		$this->config = $config;
80
		$this->logger = $logger;
81
		$this->defaults = $defaults;
82
		$this->urlGenerator = $urlGenerator;
83
		$this->l10n = $l10n;
84
	}
85
86
	/**
87
	 * Creates a new message object that can be passed to send()