Code Duplication    Length = 4-4 lines in 2 locations

lib/Controller/FederatedController.php 2 locations

@@ 89-92 (lines=4) @@
86
	 * @return DataResponse
87
	 */
88
	public function requestedLink($data) {
89
		if (MiscService::get($data, 'uniqueId') === ''
90
			|| !$this->configService->isFederatedCirclesAllowed()) {
91
			return $this->federatedFail('federated_not_allowed');
92
		}
93
94
		try {
95
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));
@@ 185-188 (lines=4) @@
182
	 * @return DataResponse
183
	 */
184
	public function updateLink($data) {
185
		if (MiscService::get($data, 'uniqueId') === ''
186
			|| !$this->configService->isFederatedCirclesAllowed()) {
187
			return $this->federatedFail('federated_not_allowed');
188
		}
189
190
		try {
191
			Circles::compareVersion(MiscService::get($data, 'apiVersion'));