@@ 740-745 (lines=6) @@ | ||
737 | foreach ($categories as $category) { |
|
738 | $course_code_category = $this->build_course_code($category); |
|
739 | if (!empty($course_code)) { |
|
740 | if ($course_code_category == $course_code) { |
|
741 | $weight_categories[] = intval($this->build_weight($category)); |
|
742 | $certificate_min_scores[] = intval($this->build_certificate_min_score($category)); |
|
743 | $course_codes[] = $course_code; |
|
744 | break; |
|
745 | } |
|
746 | } else { |
|
747 | $weight_categories[] = intval($this->build_weight($category)); |
|
748 | $certificate_min_scores[] = intval($this->build_certificate_min_score($category)); |
|
@@ 746-750 (lines=5) @@ | ||
743 | $course_codes[] = $course_code; |
|
744 | break; |
|
745 | } |
|
746 | } else { |
|
747 | $weight_categories[] = intval($this->build_weight($category)); |
|
748 | $certificate_min_scores[] = intval($this->build_certificate_min_score($category)); |
|
749 | $course_codes[] = $course_code_category; |
|
750 | } |
|
751 | } |
|
752 | ||
753 | if (is_array($weight_categories) && |