Code Duplication    Length = 21-23 lines in 2 locations

lib/Activity/ActivityManager.php 1 location

@@ 104-124 (lines=21) @@
101
102
	const SUBJECT_CARD_COMMENT_CREATE = 'card_comment_create';
103
104
	public function __construct(
105
		IManager $manager,
106
		PermissionService $permissionsService,
107
		BoardMapper $boardMapper,
108
		CardMapper $cardMapper,
109
		StackMapper $stackMapper,
110
		AttachmentMapper $attachmentMapper,
111
		AclMapper $aclMapper,
112
		IL10N $l10n,
113
		$userId
114
	) {
115
		$this->manager = $manager;
116
		$this->permissionService = $permissionsService;
117
		$this->boardMapper = $boardMapper;
118
		$this->cardMapper = $cardMapper;
119
		$this->stackMapper = $stackMapper;
120
		$this->attachmentMapper = $attachmentMapper;
121
		$this->aclMapper = $aclMapper;
122
		$this->l10n = $l10n;
123
		$this->userId = $userId;
124
	}
125
126
	/**
127
	 * @param $subjectIdentifier

lib/Service/StackService.php 1 location

@@ 53-75 (lines=23) @@
50
	private $attachmentService;
51
	private $activityManager;
52
53
	public function __construct(
54
		StackMapper $stackMapper,
55
		BoardMapper $boardMapper,
56
		CardMapper $cardMapper,
57
		LabelMapper $labelMapper,
58
		PermissionService $permissionService,
59
		BoardService $boardService,
60
		CardService $cardService,
61
		AssignedUsersMapper $assignedUsersMapper,
62
		AttachmentService $attachmentService,
63
		ActivityManager $activityManager
64
	) {
65
		$this->stackMapper = $stackMapper;
66
		$this->boardMapper = $boardMapper;
67
		$this->cardMapper = $cardMapper;
68
		$this->labelMapper = $labelMapper;
69
		$this->permissionService = $permissionService;
70
		$this->boardService = $boardService;
71
		$this->cardService = $cardService;
72
		$this->assignedUsersMapper = $assignedUsersMapper;
73
		$this->attachmentService = $attachmentService;
74
		$this->activityManager = $activityManager;
75
	}
76
77
	private function enrichStackWithCards($stack) {
78
		$cards = $this->cardMapper->findAll($stack->getId());