Code Duplication    Length = 4-4 lines in 2 locations

mod/gc_onboard_collab/views/default/profileStrength/infoCard.php 1 location

@@ 18-21 (lines=4) @@
15
		$department = $user->federal;
16
		break;
17
	case "student":
18
	case "academic":
19
		$institution = $user->institution;
20
	    $department = ($institution == 'university') ? $user->university : ($institution == 'college' ? $user->college : $user->highschool);
21
		break;
22
	case "provincial":
23
		$department = $user->provincial . ' / ' . $user->ministry;
24
		break;

mod/gc_mobile_api/models/user.php 1 location

@@ 265-268 (lines=4) @@
262
			$user['department'] = $user_entity->federal;
263
			break;
264
		case "student":
265
		case "academic":
266
			$institution = $user_entity->institution;
267
			$user['department'] = ($institution == 'university') ? $user_entity->university : ($institution == 'college' ? $user_entity->college : $user_entity->highschool);
268
			break;
269
		case "provincial":
270
			$user['department'] = $user_entity->provincial . ' / ' . $user_entity->ministry;
271
			break;