Code Duplication    Length = 7-8 lines in 2 locations

lib/Model/FederatedLink.php 2 locations

@@ 298-305 (lines=8) @@
295
			return true;
296
		}
297
		
298
		if ($this->getStatus() === self::STATUS_LINK_REQUESTED) {
299
			if ($status === self::STATUS_LINK_REMOVE) {
300
				return true;
301
			}
302
			if ($status === self::STATUS_LINK_UP) {
303
				return true;
304
			}
305
		}
306
307
		if ($this->getStatus() === self::STATUS_REQUEST_SENT
308
			|| $this->getStatus() === self::STATUS_LINK_UP
@@ 307-313 (lines=7) @@
304
			}
305
		}
306
307
		if ($this->getStatus() === self::STATUS_REQUEST_SENT
308
			|| $this->getStatus() === self::STATUS_LINK_UP
309
		) {
310
			if ($status === self::STATUS_LINK_REMOVE) {
311
				return true;
312
			}
313
		}
314
315
		throw new FederatedCircleStatusUpdateException('The status could not be updated');
316
	}