Code Duplication    Length = 8-8 lines in 2 locations

lib/Db/BoardMapper.php 2 locations

@@ 219-226 (lines=8) @@
216
		$userManager = $this->userManager;
217
		$groupManager = $this->groupManager;
218
		$acl->resolveRelation('participant', function($participant) use (&$acl, &$userManager, &$groupManager) {
219
			if ($acl->getType() === Acl::PERMISSION_TYPE_USER) {
220
				$user = $userManager->get($participant);
221
				if ($user !== null) {
222
					return new User($user);
223
				}
224
				\OC::$server->getLogger()->debug('User ' . $acl->getId() . ' not found when mapping acl ' . $acl->getParticipant());
225
				return null;
226
			}
227
			if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) {
228
				$group = $groupManager->get($participant);
229
				if ($group !== null) {
@@ 227-234 (lines=8) @@
224
				\OC::$server->getLogger()->debug('User ' . $acl->getId() . ' not found when mapping acl ' . $acl->getParticipant());
225
				return null;
226
			}
227
			if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) {
228
				$group = $groupManager->get($participant);
229
				if ($group !== null) {
230
					return new Group($group);
231
				}
232
				\OC::$server->getLogger()->debug('Group ' . $acl->getId() . ' not found when mapping acl ' . $acl->getParticipant());
233
				return null;
234
			}
235
			if ($acl->getType() === Acl::PERMISSION_TYPE_CIRCLE && $this->circlesEnabled) {
236
				try {
237
					$circle = \OCA\Circles\Api\v1\Circles::detailsCircle($acl->getParticipant(), true);