Code Duplication    Length = 6-8 lines in 2 locations

core/Command/Maintenance/Mode.php 2 locations

@@ 64-69 (lines=6) @@
61
	protected function execute(InputInterface $input, OutputInterface $output) {
62
		$maintenanceMode = $this->config->getSystemValue('maintenance', false);
63
		if ($input->getOption('on')) {
64
			if ($maintenanceMode === false) {
65
				$this->config->setSystemValue('maintenance', true);
66
				$output->writeln('Maintenance mode enabled');
67
			} else {
68
				$output->writeln('Maintenance mode already enabled');
69
			}
70
		} elseif ($input->getOption('off')) {
71
			if ($maintenanceMode === true) {
72
				$this->config->setSystemValue('maintenance', false);
@@ 70-77 (lines=8) @@
67
			} else {
68
				$output->writeln('Maintenance mode already enabled');
69
			}
70
		} elseif ($input->getOption('off')) {
71
			if ($maintenanceMode === true) {
72
				$this->config->setSystemValue('maintenance', false);
73
				$output->writeln('Maintenance mode disabled');
74
			} else {
75
				$output->writeln('Maintenance mode already disabled');
76
			}
77
		} else {
78
			if ($maintenanceMode) {
79
				$output->writeln('Maintenance mode is currently enabled');
80
			} else {