Code Duplication    Length = 9-10 lines in 2 locations

Service/AccessRights.php 2 locations

@@ 127-136 (lines=10) @@
124
	/**
125
	 * @return array function that retun a array that contain all user rights or empty array if no right found
126
	 */
127
	private function getUserRights(): array
128
	{
129
		$user_rights = $this->em->get("security.token_storage")->getToken()->getUser()->getUser()->getAccessRights();
130
		
131
		if ($user_rights) {
132
			return explode(",", $user_rights);
133
		}
134
		
135
		return [""];
136
	}
137
	
138
	/**
139
	 * @return array function that retun a array that contain all rights of rattached list right of the current user
@@ 141-149 (lines=9) @@
138
	/**
139
	 * @return array function that retun a array that contain all rights of rattached list right of the current user
140
	 */
141
	private function getRightsListOfUser(): array {
142
		$user_rights = $this->em->get("security.token_storage")->getToken()->getUser()->getUser()->getAccessRightList()->getAccessRights();
143
		
144
		if ($user_rights) {
145
			return explode(",", $user_rights);
146
		}
147
		
148
		return [""];
149
	}
150
}