Code Duplication    Length = 11-13 lines in 2 locations

lib/Command/Groups.php 1 location

@@ 138-150 (lines=13) @@
135
	}
136
137
138
	private function getCircleIdAndGroupFromArguments(InputInterface $input) {
139
		if ($input->getArgument('circle_id') === null
140
			|| $input->getArgument('group') === null) {
141
			throw new CommandMissingArgumentException(
142
143
			);
144
//			$this->l10n->t(
145
//				'Missing argument: {cmd} circle_id group', ['cmd' => './occ circles:link']
146
//			)
147
		}
148
149
		return [$input->getArgument('circle_id'), $input->getArgument('group')];
150
	}
151
152
}
153

lib/Command/SyncContact.php 1 location

@@ 135-145 (lines=11) @@
132
	}
133
134
135
	private function getCircleIdAndGroupFromArguments(InputInterface $input) {
136
		if ($input->getArgument('circle_id') === null
137
			|| $input->getArgument('group') === null) {
138
			throw new CommandMissingArgumentException();
139
//			$this->l10n->t(
140
//				'Missing argument: {cmd} circle_id group', ['cmd' => './occ circles:link']
141
//			)
142
		}
143
144
		return [$input->getArgument('circle_id'), $input->getArgument('group')];
145
	}
146
147
}
148