Browse Source

Minor - remove space between number and percentage sign see BT#13187

jmontoyaa 6 years ago
parent
commit
287e1a18e1
2 changed files with 5 additions and 8 deletions
  1. 2 4
      main/inc/ajax/model.ajax.php
  2. 3 4
      main/inc/lib/exercise.lib.php

+ 2 - 4
main/inc/ajax/model.ajax.php

@@ -1229,7 +1229,7 @@ switch ($action) {
         break;
     case 'get_exercise_results_report':
         // Used inside ExerciseLib::get_exam_results_data()
-        $documentPath = api_get_path(SYS_COURSE_PATH).$courseInfo['path']."/document";
+        $documentPath = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document';
         $sessionId = api_get_session_id();
 
         $columns = [
@@ -1277,7 +1277,6 @@ switch ($action) {
 
             $overwriteColumnHeaderExport['session_access_start_date'] = get_lang('SessionStartDate');
             $overwriteColumnHeaderExport['exe_date'] = get_lang('StartDate');
-
             $overwriteColumnHeaderExport['score_percentage'] = get_lang('Score').' - '.get_lang('Percentage');
             $overwriteColumnHeaderExport['only_score'] = get_lang('Score').' - '.get_lang('ScoreNote');
             $overwriteColumnHeaderExport['total'] = get_lang('Score').' - '.get_lang('ScoreTest');
@@ -2171,7 +2170,6 @@ if (in_array($action, $allowed_actions)) {
 
     if ($operation && $operation == 'excel') {
         $j = 1;
-
         $array = [];
         if (empty($column_names)) {
             $column_names = $columns;
@@ -2179,7 +2177,7 @@ if (in_array($action, $allowed_actions)) {
 
         // Headers
         foreach ($column_names as $col) {
-            // Ovewrite titles
+            // Overwrite titles
             if (isset($overwriteColumnHeaderExport[$col])) {
                 $col = $overwriteColumnHeaderExport[$col];
             }

+ 3 - 4
main/inc/lib/exercise.lib.php

@@ -2071,7 +2071,6 @@ HOTSPOT;
                     }
 
                     $results[$i]['exe_duration'] = !empty($results[$i]['exe_duration']) ? round($results[$i]['exe_duration'] / 60) : 0;
-
                     $user_list_id[] = $results[$i]['exe_user_id'];
                     $id = $results[$i]['exe_id'];
                     $dt = api_convert_and_format_date($results[$i]['exe_weighting']);
@@ -2528,9 +2527,9 @@ HOTSPOT;
             if ($hidePercentageSign) {
                 $percentageSign = '';
             }
-            $html = $percentage."$percentageSign  ($score / $weight)";
+            $html = $percentage."$percentageSign ($score / $weight)";
             if ($show_only_percentage) {
-                $html = $percentage."$percentageSign ";
+                $html = $percentage.$percentageSign;
             }
         } else {
             $html = $score.' / '.$weight;
@@ -2555,7 +2554,7 @@ HOTSPOT;
      */
     public static function getModelStyle($model, $percentage)
     {
-        $modelWithStyle = '<span class="'.$model['css_class'].'"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
+        $modelWithStyle = '<span class="'.$model['css_class'].'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>';
 
         return $modelWithStyle;
     }