Code Duplication    Length = 12-15 lines in 2 locations

core/Command/Encryption/DecryptAll.php 1 location

@@ 69-83 (lines=15) @@
66
	 * @param \OC\Encryption\DecryptAll $decryptAll
67
	 * @param QuestionHelper $questionHelper
68
	 */
69
	public function __construct(
70
		IManager $encryptionManager,
71
		IAppManager $appManager,
72
		IConfig $config,
73
		\OC\Encryption\DecryptAll $decryptAll,
74
		QuestionHelper $questionHelper
75
	) {
76
		parent::__construct();
77
78
		$this->appManager = $appManager;
79
		$this->encryptionManager = $encryptionManager;
80
		$this->config = $config;
81
		$this->decryptAll = $decryptAll;
82
		$this->questionHelper = $questionHelper;
83
	}
84
85
	/**
86
	 * Set maintenance mode and disable the trashbin app

core/Command/Encryption/EncryptAll.php 1 location

@@ 61-72 (lines=12) @@
58
	 * @param IConfig $config
59
	 * @param QuestionHelper $questionHelper
60
	 */
61
	public function __construct(
62
		IManager $encryptionManager,
63
		IAppManager $appManager,
64
		IConfig $config,
65
		QuestionHelper $questionHelper
66
	) {
67
		parent::__construct();
68
		$this->appManager = $appManager;
69
		$this->encryptionManager = $encryptionManager;
70
		$this->config = $config;
71
		$this->questionHelper = $questionHelper;
72
	}
73
74
	/**
75
	 * Set maintenance mode and disable the trashbin app