Code Duplication    Length = 6-6 lines in 2 locations

lib/Migration/UnknownUsers.php 2 locations

@@ 67-72 (lines=6) @@
64
			$acls = $this->aclMapper->findAll($board->getId());
65
			/** @var Acl $acl */
66
			foreach ($acls as $acl) {
67
				if ($acl->getType() === Acl::PERMISSION_TYPE_USER) {
68
					$user = $this->userManager->get($acl->getParticipant());
69
					if ($user === null) {
70
						$this->aclMapper->delete($acl);
71
					}
72
				}
73
				if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) {
74
					$group = $this->groupManager->get($acl->getParticipant());
75
					if ($group === null) {
@@ 73-78 (lines=6) @@
70
						$this->aclMapper->delete($acl);
71
					}
72
				}
73
				if ($acl->getType() === Acl::PERMISSION_TYPE_GROUP) {
74
					$group = $this->groupManager->get($acl->getParticipant());
75
					if ($group === null) {
76
						$this->aclMapper->delete($acl);
77
					}
78
				}
79
80
			}
81
		}