Code Duplication    Length = 4-4 lines in 2 locations

lib/Controller/FederatedController.php 2 locations

@@ 120-123 (lines=4) @@
117
	 * @return DataResponse
118
	 */
119
	public function requestedLink($data) {
120
		if (MiscService::get($data, 'uniqueId') === ''
121
			|| !$this->configService->isFederatedCirclesAllowed()) {
122
			return $this->federatedFail('federated_not_allowed');
123
		}
124
125
		try {
126
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));
@@ 216-219 (lines=4) @@
213
	 * @return DataResponse
214
	 */
215
	public function updateLink($data) {
216
		if (MiscService::get($data, 'uniqueId') === ''
217
			|| !$this->configService->isFederatedCirclesAllowed()) {
218
			return $this->federatedFail('federated_not_allowed');
219
		}
220
221
		try {
222
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));