Code Duplication    Length = 4-4 lines in 2 locations

lib/Controller/FederatedController.php 2 locations

@@ 139-142 (lines=4) @@
136
	 * @return DataResponse
137
	 */
138
	public function requestedLink($data) {
139
		if (MiscService::get($data, 'uniqueId') === ''
140
			|| !$this->configService->isFederatedCirclesAllowed()) {
141
			return $this->federatedFail('federated_not_allowed');
142
		}
143
144
		try {
145
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));
@@ 235-238 (lines=4) @@
232
	 * @return DataResponse
233
	 */
234
	public function updateLink($data) {
235
		if (MiscService::get($data, 'uniqueId') === ''
236
			|| !$this->configService->isFederatedCirclesAllowed()) {
237
			return $this->federatedFail('federated_not_allowed');
238
		}
239
240
		try {
241
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));