Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 79-84 (lines=6) @@
76
				. 'We strongly recommend to keep the master key, it provides significant performance improvements '
77
				. 'and is easier to handle for both, users and administrators. '
78
				. 'Do you really want to switch to per-user keys? (y/n) ', false);
79
			if ($this->questionHelper->ask($input, $output, $question)) {
80
				$this->config->setAppValue('encryption', 'useMasterKey', '0');
81
				$output->writeln('Master key successfully disabled.');
82
			} else {
83
				$output->writeln('aborted.');
84
			}
85
		}
86
87
	}

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

@@ 77-82 (lines=6) @@
74
			$question = new ConfirmationQuestion(
75
				'Warning: Only available for fresh installations with no existing encrypted data! '
76
			. 'There is also no way to disable it again. Do you want to continue? (y/n) ', false);
77
			if ($this->questionHelper->ask($input, $output, $question)) {
78
				$this->config->setAppValue('encryption', 'useMasterKey', '1');
79
				$output->writeln('Master key successfully enabled.');
80
			} else {
81
				$output->writeln('aborted.');
82
			}
83
		}
84
85
	}