Code Duplication    Length = 10-12 lines in 3 locations

lib/Command/Groups.php 1 location

@@ 61-70 (lines=10) @@
58
	}
59
60
61
	protected function configure() {
62
		parent::configure();
63
		$this->setName('circles:groups')
64
			 ->setDescription('manage the linked groups')
65
			 ->addOption('list', 'l', InputOption::VALUE_NONE, 'list all linked group')
66
			 ->addOption('link', 'a', InputOption::VALUE_NONE, 'link a group to a circle')
67
			 ->addOption('unlink', 'd', InputOption::VALUE_NONE, 'unlink a group from a circle')
68
			 ->addArgument('circle_id', InputArgument::OPTIONAL, 'id of the circle')
69
			 ->addArgument('group', InputArgument::OPTIONAL, 'name of the group');
70
	}
71
72
73
	protected function execute(InputInterface $input, OutputInterface $output) {

lib/Command/CirclesEdit.php 1 location

@@ 96-106 (lines=11) @@
93
	/**
94
	 *
95
	 */
96
	protected function configure() {
97
		parent::configure();
98
		$this->setName('circles:manage:edit')
99
			 ->setDescription('edit displayName or description of a Circle')
100
			 ->addArgument('circle_id', InputArgument::REQUIRED, 'ID of the circle')
101
			 ->addArgument('edit', InputArgument::REQUIRED, 'displayName or description')
102
			 ->addArgument('value', InputArgument::REQUIRED, 'new value')
103
			 ->addOption('initiator', '', InputOption::VALUE_REQUIRED, 'set an initiator to the request', '')
104
			 ->addOption('status-code', '', InputOption::VALUE_NONE, 'display status code on exception');
105
106
	}
107
108
109
	/**

lib/Command/CirclesConfig.php 1 location

@@ 83-94 (lines=12) @@
80
	/**
81
	 *
82
	 */
83
	protected function configure() {
84
		parent::configure();
85
		$this->setName('circles:manage:config')
86
			 ->setDescription('edit config/type of a Circle')
87
			 ->addArgument('circle_id', InputArgument::REQUIRED, 'ID of the circle')
88
			 ->addArgument(
89
				 'config', InputArgument::IS_ARRAY,
90
				 'list of value to change in the configuration of the Circle'
91
			 )
92
			 ->addOption('initiator', '', InputOption::VALUE_REQUIRED, 'set an initiator to the request', '')
93
			 ->addOption('status-code', '', InputOption::VALUE_NONE, 'display status code on exception');
94
	}
95
96
97
	/**