Commit e1c80995 authored by Lückemeyer's avatar Lückemeyer
Browse files

adjusted comments and lines

1 merge request!1Coding style and recommendations
Showing with 14 additions and 6 deletions
+14 -6
No preview for this file type
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* entity classes for DTA submission plugin result summary and test results
*
* @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams
*/
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
/** /**
...@@ -85,6 +92,7 @@ class DtaResult { ...@@ -85,6 +92,7 @@ class DtaResult {
/** /**
* Returns the name of a state with the given number of display. * Returns the name of a state with the given number of display.
* @param $state number of the state
* @return name of state as defined * @return name of state as defined
*/ */
public static function getstatename(int $state): string { public static function getstatename(int $state): string {
......
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams * @copyright Gero Lueckemeyer and student project teams
*/ */
/** /**
* backend webservice contact utility class * backend webservice contact utility class
* *
* @package assignsubmission_dta * @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams * @copyright Gero Lueckemeyer and student project teams
*/ */
class DtaBackendUtils { class DtaBackendUtils {
/** /**
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* @package assignsubmission_dta * @package assignsubmission_dta
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @copyright Gero Lueckemeyer and student project teams * @copyright Gero Lueckemeyer and student project teams
*/ */
class DbUtils { class DbUtils {
/** /**
......
...@@ -74,7 +74,7 @@ class view_submission_utils { ...@@ -74,7 +74,7 @@ class view_submission_utils {
$comp = $overallcompetencies[$index]; $comp = $overallcompetencies[$index];
// If the competency was actually assessed by the assignment and tests, add a summary entry. // If the competency was actually assessed by the assignment and tests, add a summary entry.
if ($shown != "0") { if ($shown != "0") {
$tmp .= get_string("comp" . $index, self::COMPONENT_NAME) . $tmp .= get_string("comp" . $index, self::COMPONENT_NAME) .
" " . 100 * floatval($shown) / floatval($comp) . "% " . "<br />"; " " . 100 * floatval($shown) / floatval($comp) . "% " . "<br />";
} }
} }
...@@ -237,7 +237,7 @@ class view_submission_utils { ...@@ -237,7 +237,7 @@ class view_submission_utils {
$comp = $overallcompetencies[$index]; $comp = $overallcompetencies[$index];
$shown = $showncompetencies[$index]; $shown = $showncompetencies[$index];
// If the competency was actually assessed by the assignment and tests, add a row in the table. // If the competency was actually assessed by the assignment and tests, add a row in the table.
if($comp != "0") { if ($comp != "0") {
// New copy of base attributes array. // New copy of base attributes array.
$resultrowattributes = $tablerowattributes; $resultrowattributes = $tablerowattributes;
$tmp = ""; $tmp = "";
...@@ -299,7 +299,7 @@ class view_submission_utils { ...@@ -299,7 +299,7 @@ class view_submission_utils {
"td", "td",
get_string("unit_name", self::COMPONENT_NAME), get_string("unit_name", self::COMPONENT_NAME),
$attributes); $attributes);
$tmp .= html_writer::tag( $tmp .= html_writer::tag(
"td", "td",
$r->classname, $r->classname,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment