Code Duplication    Length = 8-24 lines in 4 locations

core/Command/Config/App/GetConfig.php 1 location

@@ 43-66 (lines=24) @@
40
		$this->config = $config;
41
	}
42
43
	protected function configure() {
44
		parent::configure();
45
46
		$this
47
			->setName('config:app:get')
48
			->setDescription('Get an app config value.')
49
			->addArgument(
50
				'app',
51
				InputArgument::REQUIRED,
52
				'Name of the app.'
53
			)
54
			->addArgument(
55
				'name',
56
				InputArgument::REQUIRED,
57
				'Name of the config to get.'
58
			)
59
			->addOption(
60
				'default-value',
61
				null,
62
				InputOption::VALUE_OPTIONAL,
63
				'If no default value is set and the config does not exist, the command will exit with 1.'
64
			)
65
		;
66
	}
67
68
	/**
69
	 * Executes the current command.

core/Command/Config/System/DeleteConfig.php 1 location

@@ 43-61 (lines=19) @@
40
		$this->systemConfig = $systemConfig;
41
	}
42
43
	protected function configure() {
44
		parent::configure();
45
46
		$this
47
			->setName('config:system:delete')
48
			->setDescription('Delete a system config value.')
49
			->addArgument(
50
				'name',
51
				InputArgument::REQUIRED | InputArgument::IS_ARRAY,
52
				'Name of the config to delete, specify multiple for array parameter.'
53
			)
54
			->addOption(
55
				'error-if-not-exists',
56
				null,
57
				InputOption::VALUE_NONE,
58
				'Checks whether the config exists before deleting it.'
59
			)
60
		;
61
	}
62
63
	protected function execute(InputInterface $input, OutputInterface $output) {
64
		$configNames = $input->getArgument('name');

core/Command/Config/System/GetConfig.php 1 location

@@ 43-61 (lines=19) @@
40
		$this->systemConfig = $systemConfig;
41
	}
42
43
	protected function configure() {
44
		parent::configure();
45
46
		$this
47
			->setName('config:system:get')
48
			->setDescription('Get a system config value.')
49
			->addArgument(
50
				'name',
51
				InputArgument::REQUIRED | InputArgument::IS_ARRAY,
52
				'Name of the config to get. Specify multiple for array parameter.'
53
			)
54
			->addOption(
55
				'default-value',
56
				null,
57
				InputOption::VALUE_OPTIONAL,
58
				'If no default value is set and the config does not exist, the command will exit with 1.'
59
			)
60
		;
61
	}
62
63
	/**
64
	 * Executes the current command.

core/Command/Integrity/CheckApp.php 1 location

@@ 51-58 (lines=8) @@
48
	/**
49
	 * {@inheritdoc }
50
	 */
51
	protected function configure() {
52
		parent::configure();
53
		$this
54
			->setName('integrity:check-app')
55
			->setDescription('Check the integrity of an app using a signature.')
56
			->addArgument('appid', null, InputArgument::REQUIRED, 'Application to check.')
57
			->addOption('path', null, InputOption::VALUE_OPTIONAL, 'Path to the application. If none is given it will be guessed.');
58
	}
59
60
	/**
61
	 * {@inheritdoc }