Code Duplication    Length = 8-8 lines in 2 locations

lib/Activity/ActivityManager.php 2 locations

@@ 465-472 (lines=8) @@
462
		throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType);
463
	}
464
465
	private function findDetailsForStack($stackId) {
466
		$stack = $this->stackMapper->find($stackId);
467
		$board = $this->boardMapper->find($stack->getBoardId());
468
		return [
469
			'stack' => $stack,
470
			'board' => $board
471
		];
472
	}
473
474
	private function findDetailsForCard($cardId) {
475
		$card = $this->cardMapper->find($cardId);
@@ 491-498 (lines=8) @@
488
		return array_merge($data, ['attachment' => $attachment]);
489
	}
490
491
	private function findDetailsForAcl($aclId) {
492
		$acl = $this->aclMapper->find($aclId);
493
		$board = $this->boardMapper->find($acl->getBoardId());
494
		return [
495
			'acl' => $acl,
496
			'board' => $board
497
		];
498
	}
499
500
}
501