Code Duplication    Length = 11-12 lines in 2 locations

lib/Command/CirclesCreate.php 1 location

@@ 89-100 (lines=12) @@
86
	}
87
88
89
	protected function configure() {
90
		parent::configure();
91
		$this->setName('circles:manage:create')
92
			 ->setDescription('create a new circle')
93
			 ->addArgument('owner', InputArgument::REQUIRED, 'owner of the circle')
94
			 ->addArgument('name', InputArgument::REQUIRED, 'name of the circle')
95
			 ->addOption('status-code', '', InputOption::VALUE_NONE, 'display status code on exception')
96
			 ->addOption(
97
				 'type', '', InputOption::VALUE_REQUIRED, 'type of the owner',
98
				 Member::$TYPE[Member::TYPE_SINGLE]
99
			 );
100
	}
101
102
103
	/**

lib/Command/CirclesRemote.php 1 location

@@ 120-130 (lines=11) @@
117
	/**
118
	 *
119
	 */
120
	protected function configure() {
121
		parent::configure();
122
		$this->setName('circles:remote')
123
			 ->setDescription('remote features')
124
			 ->addArgument('host', InputArgument::OPTIONAL, 'host of the remote instance of Nextcloud')
125
			 ->addOption(
126
				 'type', '', InputOption::VALUE_REQUIRED, 'set type of remote', RemoteInstance::TYPE_UNKNOWN
127
			 )
128
			 ->addOption('yes', '', InputOption::VALUE_NONE, 'silently add the remote instance')
129
			 ->addOption('all', '', InputOption::VALUE_NONE, 'display all information');
130
	}
131
132
133
	/**