Code Duplication    Length = 8-8 lines in 2 locations

lib/Db/BoardMapper.php 2 locations

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