Code Duplication    Length = 7-7 lines in 3 locations

mod/missions/actions/missions/change-mission-form.php 1 location

@@ 61-67 (lines=7) @@
58
    $mission->role_type = $edit_form['role_type'];
59
	$mission->job_type = $edit_form['job_type'];
60
	// Stores the value of program area selected unless it is other.
61
	if($edit_form['job_area'] != 'missions:other') {
62
		$mission->program_area = $edit_form['job_area'];
63
	}
64
	// When other is selected, the free text entry is stored instead.
65
	else {
66
		$mission->program_area = $edit_form['other_text'];
67
	}
68
69
	//Nick - adding group and level
70
	if($edit_form['group']){

mod/missions/actions/missions/post-mission-third-form.php 1 location

@@ 93-99 (lines=7) @@
90
    $mission->role_type = $second_form['role_type'];
91
    $mission->job_type = $second_form['job_type'];
92
	// Stores the value of program area selected unless it is other.
93
    if($second_form['job_area'] != 'missions:other') {
94
    	$mission->program_area = $second_form['job_area'];
95
    }
96
	// When other is selected, the free text entry is stored instead.
97
    else {
98
    	$mission->program_area = $second_form['other_text'];
99
    }
100
    $mission->number = $second_form['number'];
101
    $mission->start_date = $second_form['start_date'];
102
    $mission->completion_date = $second_form['completion_date'];

mod/gc_mobile_api/models/opportunity.php 1 location

@@ 859-865 (lines=7) @@
856
    $mission->role_type = $second_form['role_type'];
857
    $mission->job_type = $second_form['job_type'];
858
	// Stores the value of program area selected unless it is other.
859
    if($second_form['job_area'] != 'missions:other') {
860
    	$mission->program_area = $second_form['job_area'];
861
    }
862
	// When other is selected, the free text entry is stored instead.
863
    else {
864
    	$mission->program_area = $second_form['other_text'];
865
    }
866
    $mission->number = $second_form['number'];
867
    $mission->start_date = $second_form['start_date'];
868
    $mission->completion_date = $second_form['completion_date'];