Browse Source

Correcting trailing whitespaces

Satyan JACQUENS 8 years ago
parent
commit
b53ad00b71
2 changed files with 4 additions and 2 deletions
  1. 1 2
      main/auth/courses_categories.php
  2. 3 0
      main/inc/lib/course.lib.php

+ 1 - 2
main/auth/courses_categories.php

@@ -329,6 +329,7 @@ function return_teacher($course)
     $length = count($teachers);
     foreach ($teachers as $value) {
         $name = $value['firstname'].' ' . $value['lastname'];
+
         if ($length > 2) {
              $html .= '<a href="'.$value['url'].'" class="ajax" data-title="'.$name.'">
                     <img src="'.$value['avatar'].'" alt="'.$name.' ' .get_lang('Profile').'"/></a>';
@@ -431,7 +432,6 @@ function return_already_registered_label($in_status)
 
     $html = Display::tag(
         'button',
-
         $icon,
         array('id' => 'register', 'class' => 'btn btn-default btn-sm', 'title' => $title, 'aria-label' => $title)
     );
@@ -450,7 +450,6 @@ function return_already_registered_label($in_status)
  */
 function return_register_button($course, $stok, $code, $search_term)
 {
-
     $title = get_lang('Subscribe');
     $html = Display::url(
         Display::returnFontAwesomeIcon('sign-in'),

+ 3 - 0
main/inc/lib/course.lib.php

@@ -4888,6 +4888,7 @@ class CourseManager
                         'aria-label' => get_lang('Subscribe')
                     )
                 );
+
             }
 
             if ($access_link && in_array('enter',
@@ -4903,6 +4904,7 @@ class CourseManager
                         'aria-label' => get_lang('GoToCourse')
                     )
                 );
+
             }
 
             if ($access_link && in_array('unsubscribe', $access_link)) {
@@ -4917,6 +4919,7 @@ class CourseManager
                         'aria-label' => get_lang('Unreg')
                     )
                 );
+
             }
 
             // start buycourse validation