Code Duplication    Length = 7-7 lines in 2 locations

mod/missions/actions/missions/application-form.php 1 location

@@ 265-271 (lines=7) @@
262
	if(!is_array($skill_list)) {
263
	    $skill_list = array_filter(array($skill_list));
264
	}
265
	if(!empty($skill_list)) {
266
	    foreach ($skill_list as $skill) {
267
	        $skill = get_entity($skill);
268
	        $content_applicant_en .= '<b>' . $skill->title . '</b>' . "<br>";
269
	        $content_applicant_fr .= '<b>' . $skill->title . '</b>' . "<br>";
270
	    }
271
	}
272
	
273
	// Sends the application via email and notification.
274
	$content_applicant_en .= elgg_view('output/url', array(

mod/gc_mobile_api/models/opportunity.php 1 location

@@ 522-528 (lines=7) @@
519
		if(!is_array($skill_list)) {
520
			$skill_list = array_filter(array($skill_list));
521
		}
522
		if(!empty($skill_list)) {
523
			foreach ($skill_list as $skill) {
524
				$skill = get_entity($skill);
525
				$content_applicant_en .= '<b>' . $skill->title . '</b>' . "<br>";
526
				$content_applicant_fr .= '<b>' . $skill->title . '</b>' . "<br>";
527
			}
528
		}
529
		
530
		// Sends the application via email and notification.
531
		$content_applicant_en .= elgg_view('output/url', array(