Code Duplication    Length = 8-8 lines in 2 locations

lib/Activity/ActivityManager.php 2 locations

@@ 446-453 (lines=8) @@
443
		throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType);
444
	}
445
446
	private function findDetailsForStack($stackId) {
447
		$stack = $this->stackMapper->find($stackId);
448
		$board = $this->boardMapper->find($stack->getBoardId());
449
		return [
450
			'stack' => $stack,
451
			'board' => $board
452
		];
453
	}
454
455
	private function findDetailsForCard($cardId) {
456
		$card = $this->cardMapper->find($cardId);
@@ 472-479 (lines=8) @@
469
		return array_merge($data, ['attachment' => $attachment]);
470
	}
471
472
	private function findDetailsForAcl($aclId) {
473
		$acl = $this->aclMapper->find($aclId);
474
		$board = $this->boardMapper->find($acl->getBoardId());
475
		return [
476
			'acl' => $acl,
477
			'board' => $board
478
		];
479
	}
480
481
}
482