Commit 047da14d authored by Lückemeyer's avatar Lückemeyer
Browse files

fixed short array notation

1 merge request!1Coding style and recommendations
Showing with 8 additions and 10 deletions
+8 -10
No preview for this file type
......@@ -49,9 +49,7 @@ function assignsubmission_dta_pluginfile(
require_login($course, false, $cm);
$itemid = (int)array_shift($args);
$record = $DB->get_record('assign_submission',
[
'id' => $itemid,
],
['id' => $itemid],
'userid, assignment, groupid',
MUST_EXIST);
$userid = $record->userid;
......
......@@ -100,9 +100,7 @@ class assign_submission_dta extends assign_submission_plugin {
self::COMPONENT_NAME,
self::ASSIGNSUBMISSION_DTA_FILEAREA_TEST,
0,
[
'subdirs' => 0,
]
['subdirs' => 0]
);
$defaultvalues[self::ASSIGNSUBMISSION_DTA_DRAFT_FILEAREA_TEST] = $draftitemid;
......
......@@ -78,10 +78,10 @@ class DtaBackendUtils {
$url = $backendaddress . "/v1/task";
// Prepare params.
$params = array(
$params = [
"taskFile" => $file,
"assignmentId" => $assignment->get_instance()->id
);
"assignmentId" => $assignment->get_instance()->id,
];
return self::post($url, $params);
}
......
......@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
defined('MOODLE_INTERNAL') || die();
class DbUtils {
// Summary database table name.
......@@ -38,7 +40,7 @@ class DbUtils {
$summaryrecord = $DB->get_record(self::TABLE_SUMMARY, [
"assignment_id" => $assignmentid,
"submission_id" => $submissionid,
});
]);
$resultsarray = $DB->get_records(self::TABLE_RESULT, [
"assignment_id" => $assignmentid,
......
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