Code Duplication    Length = 10-10 lines in 2 locations

main/inc/lib/tracking.lib.php 2 locations

@@ 1268-1277 (lines=10) @@
1265
                STUDENT_BOSS
1266
            );
1267
1268
            if ($getCount) {
1269
                $studentBossCount = $studentBossesList;
1270
            } else {
1271
                $studentBosses = array();
1272
                if (is_array($studentBossesList)) {
1273
                    foreach ($studentBossesList as $studentBossData) {
1274
                        $studentBosses[] = $studentBossData['user_id'];
1275
                    }
1276
                }
1277
            }
1278
1279
            $teacherList = SessionManager::getAllUsersFromCoursesFromAllSessionFromStatus(
1280
                'drh_all',
@@ 1393-1402 (lines=10) @@
1390
                COURSEMANAGER
1391
            );
1392
1393
            if ($getCount) {
1394
                $studentBossCount = $studentBossesList;
1395
            } else {
1396
                $studentBosses = array();
1397
                if (is_array($studentBossesList)) {
1398
                    foreach ($studentBossesList as $studentBossData) {
1399
                        $studentBosses[] = $studentBossData['user_id'];
1400
                    }
1401
                }
1402
            }
1403
1404
            $teacherList = UserManager::getUsersFollowedByUser(
1405
                $userId,