Code Duplication    Length = 12-15 lines in 3 locations

core/Command/Encryption/DecryptAll.php 1 location

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

core/Command/Encryption/EncryptAll.php 1 location

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

core/Command/Encryption/ParallelDecryptAll.php 1 location

@@ 64-75 (lines=12) @@
61
	 * @param IConfig $config
62
	 * @param \OC\Encryption\DecryptAll $parallelDecryptAll
63
	 */
64
	public function __construct(
65
		IManager $encryptionManager,
66
		IAppManager $appManager,
67
		IConfig $config,
68
		\OC\Encryption\ParallelDecryptAll $parallelDecryptAll
69
	) {
70
		parent::__construct();
71
		$this->appManager = $appManager;
72
		$this->encryptionManager = $encryptionManager;
73
		$this->config = $config;
74
		$this->parallelDecryptAll = $parallelDecryptAll;
75
	}
76
77
	protected function configure() {
78
		parent::configure();