Minor - Format code

1.10.x
Julio Montoya 11 years ago
parent 9b466842a1
commit 1304f3d35a
  1. 5
      main/gradebook/lib/flatview_data_generator.class.php
  2. 2
      main/inc/lib/formvalidator/FormValidator.class.php

@ -237,6 +237,7 @@ class FlatViewDataGenerator
$item = $this->evals_links [$count + $items_start];
$headers[] = $item->get_name();
}
return $headers;
}
@ -556,7 +557,7 @@ class FlatViewDataGenerator
$divide = isset($score[1]) && !empty($score[1]) ? $score[1] : 1;
// Sub cat weight
$sub_cat_percentage = $sum_categories_weight_array[$item->get_category_id()];
//$sub_cat_percentage = $sum_categories_weight_array[$item->get_category_id()];
$item_value = isset($score[0]) ? $score[0]/$divide : 0;
@ -722,7 +723,7 @@ class FlatViewDataGenerator
$score_final = ($score[0] / $score_denom) * 100;
$row[] = $score_final;
}
$total_score = array($item_value, $item_total);
//$total_score = array($item_value, $item_total);
$score_final = ($item_value / $item_total) * 100;
$row[] = $score_final;

@ -586,7 +586,7 @@ EOT;
* @param string $label
* @param array $attributes
*/
public function add_file($name, $label, $attributes = array())
public function addFile($name, $label, $attributes = array())
{
$this->addElement('file', $name, $label, $attributes);
}

Loading…
Cancel
Save