Code Duplication    Length = 21-23 lines in 2 locations

lib/Service/StackService.php 1 location

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

lib/Activity/ActivityManager.php 1 location

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