From dc63518ac55f57a6bd2982288325fedfed29d3eb Mon Sep 17 00:00:00 2001 From: Alex Aragon Date: Wed, 12 Apr 2017 17:28:45 -0500 Subject: [PATCH] fix code climate --- main/auth/courses_categories.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/auth/courses_categories.php b/main/auth/courses_categories.php index 403bee1631..1421e4670c 100755 --- a/main/auth/courses_categories.php +++ b/main/auth/courses_categories.php @@ -318,7 +318,8 @@ function returnThumbnail($course, $registeredUser) return $html; } -function return_teacher($course) { +function return_teacher($course) +{ //Info course $courseInfo = api_get_course_info($course['code']); $teachers = CourseManager::getTeachersFromCourse($courseInfo['real_id']); @@ -355,7 +356,11 @@ function return_title($course, $registeredUser) $linkCourse = api_get_course_url($course['code']); $title = cut($course['title'], 45); $ajax_url = api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=add_course_vote'; - $rating = Display::return_rating_system('star_'.$course['real_id'], $ajax_url.'&course_id='.$course['real_id'], $course['point_info']); + $rating = Display::return_rating_system( + 'star_'.$course['real_id'], + $ajax_url.'&course_id='.$course['real_id'], + $course['point_info'] + ); $html .= '

'; if (!$registeredUser) {