Browse Source

Minor - flint fixes

Julio Montoya 5 years ago
parent
commit
ee58d132f5
2 changed files with 2 additions and 8 deletions
  1. 0 1
      main/admin/access_url_edit.php
  2. 2 7
      main/mySpace/lp_tracking.php

+ 0 - 1
main/admin/access_url_edit.php

@@ -6,7 +6,6 @@
  *
  * @author Julio Montoya <gugli100@gmail.com>
  */
-
 $cidReset = true;
 require_once __DIR__.'/../inc/global.inc.php';
 $this_section = SECTION_PLATFORM_ADMIN;

+ 2 - 7
main/mySpace/lp_tracking.php

@@ -88,7 +88,7 @@ switch ($action) {
         if (!api_is_allowed_to_edit()) {
             api_not_allowed();
         }
-        $tpl = new Template(null,false,false);
+        $tpl = new Template(null, false, false);
         $itemId = isset($_REQUEST['extend_id']) ? $_REQUEST['extend_id'] : 0;
         $itemViewId = isset($_REQUEST['extend_attempt_id']) ? $_REQUEST['extend_attempt_id'] : 0;
         $em = Database::getManager();
@@ -196,15 +196,11 @@ switch ($action) {
         $generalScore[] = [
                 'score' => $scoreDisplay->display_score($globalScoreTotal, SCORE_DIV),
                 'score_numeric' => $scoreDisplay->display_score($globalScoreTotal, SCORE_NUMERIC),
-                'score_percentage' => $scoreDisplay->display_score($globalScoreTotal, SCORE_PERCENT)
+                'score_percentage' => $scoreDisplay->display_score($globalScoreTotal, SCORE_PERCENT),
         ];
         $tpl->assign('general_score', $generalScore);
         $tpl->assign('global_total', $score);
 
-
-
-
-
         $table->setCellContents($row, 0, get_lang('GlobalTotal'));
         $table->setCellContents($row, 1, '');
         $table->setCellContents($row, 2, $score);
@@ -223,7 +219,6 @@ switch ($action) {
             'candidate' => $studentName,
         ];
 
-
         $tpl->assign('data', $dataLpInfo);
         $template = $tpl->fetch($tpl->get_template('my_space/pdf_tracking_lp.tpl'));
         $contentText = $template;