Code Duplication    Length = 5-5 lines in 5 locations

mod/gc_onboard/start.php 1 location

@@ 151-155 (lines=5) @@
148
    }
149
150
    //skills
151
    if(count($userEnt->gc_skills) >= 3){
152
        $skillCount = 100;
153
    } else {
154
        $skillCount = round(count($userEnt->gc_skills)/3*100);
155
    }
156
157
    //overall total
158
    $complete = round(($skillCount + $workCount + $eduCount + $basicCount + $aboutTotal + $avTotal)/6);

mod/GC_profileStrength/views/default/widgets/profile_completness/content.php 1 location

@@ 64-68 (lines=5) @@
61
}
62
63
//skills
64
if(count($userEnt->gc_skills) >= 3){
65
    $skillCount = 100;
66
} else {
67
    $skillCount = round(count($userEnt->gc_skills)/3*100);
68
}
69
70
//overall total
71
$complete = round(($skillCount + $workCount + $eduCount + $basicCount + $aboutTotal + $avTotal)/6);

mod/GC_profileStrength_collab/views/default/widgets/profile_completness/content.php 1 location

@@ 64-68 (lines=5) @@
61
}
62
63
//skills
64
if(count($userEnt->gc_skills) >= 3){
65
    $skillCount = 100;
66
} else {
67
    $skillCount = round(count($userEnt->gc_skills)/3*100);
68
}
69
70
//overall total
71
$complete = round(($skillCount + $workCount + $eduCount + $basicCount + $aboutTotal + $avTotal)/6);

mod/achievement_badges/start.php 1 location

@@ 102-106 (lines=5) @@
99
    }
100
101
    //skills
102
    if(count($userEnt->gc_skills) >= 3){
103
        $skillCount = 100;
104
    } else {
105
        $skillCount = round(count($userEnt->gc_skills)/3*100);
106
    }
107
108
    //overall total
109
    $complete = round(($skillCount + $workCount + $eduCount + $basicCount + $aboutTotal + $avTotal)/6);

mod/gc_onboard_collab/start.php 1 location

@@ 124-128 (lines=5) @@
121
    }
122
123
    //skills
124
    if(count($userEnt->gc_skills) >= 3){
125
        $skillCount = 100;
126
    } else {
127
        $skillCount = round(count($userEnt->gc_skills)/3*100);
128
    }
129
130
    //overall total
131
    $complete = round(($skillCount + $workCount + $eduCount + $basicCount + $aboutTotal + $avTotal)/6);