diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php
index d62be782219..6ccb84e93d7 100644
--- a/lib/filestorage/file_storage.php
+++ b/lib/filestorage/file_storage.php
@@ -2408,8 +2408,8 @@ class file_storage {
$rs->close();
mtrace('done.');
- // remove orphaned converted files (that is files in the core documentconversion filearea without
- // the existing original file)
+ // Remove orphaned converted files (that is files in the core documentconversion filearea without
+ // the existing original file).
mtrace('Deleting orphaned document conversion files... ', '');
cron_trace_time_and_memory();
$sql = "SELECT p.*
diff --git a/lib/formslib.php b/lib/formslib.php
index 2c16fd225e9..f011b23cb85 100644
--- a/lib/formslib.php
+++ b/lib/formslib.php
@@ -161,7 +161,8 @@ abstract class moodleform {
* @param bool $editable
* @param array $ajaxformdata Forms submitted via ajax, must pass their data here, instead of relying on _GET and _POST.
*/
- public function __construct($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true, $ajaxformdata=null) {
+ public function __construct($action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true,
+ $ajaxformdata=null) {
global $CFG, $FULLME;
// no standard mform in moodle should allow autocomplete with the exception of user signup
if (empty($attributes)) {
diff --git a/lib/tests/unoconv_test.php b/lib/tests/unoconv_test.php
index 6c266f7bdff..3038abb3a5b 100644
--- a/lib/tests/unoconv_test.php
+++ b/lib/tests/unoconv_test.php
@@ -18,7 +18,6 @@
* Test unoconv functionality.
*
* @package core
- * @category phpunit
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@@ -30,13 +29,14 @@ defined('MOODLE_INTERNAL') || die();
* A set of tests for some of the unoconv functionality within Moodle.
*
* @package core
- * @category phpunit
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class core_unoconv_testcase extends advanced_testcase {
+ /** @var $testfile1 */
private $testfile1 = null;
+ /** @var $testfile2 */
private $testfile2 = null;
public function setUp() {
diff --git a/mod/assign/classes/output/grading_app.php b/mod/assign/classes/output/grading_app.php
index d8a47bbff4f..df53f229bda 100644
--- a/mod/assign/classes/output/grading_app.php
+++ b/mod/assign/classes/output/grading_app.php
@@ -42,17 +42,17 @@ use stdClass;
class grading_app implements templatable, renderable {
/**
- * The initial user id.
+ * @var $userid - The initial user id.
*/
public $userid = 0;
/**
- * The initial group id.
+ * @var $groupid - The initial group id.
*/
public $groupid = 0;
/**
- * The assignment instance.
+ * @var $assignment - The assignment instance.
*/
public $assignment = null;
diff --git a/mod/assign/externallib.php b/mod/assign/externallib.php
index c1d436500a6..be19ca6afc7 100644
--- a/mod/assign/externallib.php
+++ b/mod/assign/externallib.php
@@ -1537,9 +1537,11 @@ class mod_assign_external extends external_api {
require_once($CFG->dirroot . '/mod/assign/gradeform.php');
$params = self::validate_parameters(self::submit_grading_form_parameters(),
- array('assignmentid' => $assignmentid,
- 'userid' => $userid,
- 'jsonformdata' => $jsonformdata));
+ array(
+ 'assignmentid' => $assignmentid,
+ 'userid' => $userid,
+ 'jsonformdata' => $jsonformdata
+ ));
$cm = get_coursemodule_from_instance('assign', $params['assignmentid'], 0, false, MUST_EXIST);
$context = context_module::instance($cm->id);
@@ -1554,10 +1556,12 @@ class mod_assign_external extends external_api {
$warnings = array();
- $options = array('userid'=>$params['userid'],
- 'attemptnumber'=>$data['attemptnumber'],
- 'rownum'=>0,
- 'gradingpanel' => true);
+ $options = array(
+ 'userid' => $params['userid'],
+ 'attemptnumber' => $data['attemptnumber'],
+ 'rownum' => 0,
+ 'gradingpanel' => true
+ );
$customdata = (object) $data;
$formparams = array($assignment, $customdata, $options);
@@ -2582,7 +2586,7 @@ class mod_assign_external extends external_api {
'filter' => new external_value(PARAM_RAW, 'search string to filter the results'),
'skip' => new external_value(PARAM_INT, 'number of records to skip', VALUE_DEFAULT, 0),
'limit' => new external_value(PARAM_INT, 'maximum number of records to return', VALUE_DEFAULT, 0),
- 'onlyids' => new external_value(PARAM_BOOL, 'Do not return all user fields - only the id and flags (requiresgrading etc)', VALUE_DEFAULT, false),
+ 'onlyids' => new external_value(PARAM_BOOL, 'Do not return all user fields', VALUE_DEFAULT, false),
)
);
}
diff --git a/mod/assign/feedback/editpdf/classes/event/observer.php b/mod/assign/feedback/editpdf/classes/event/observer.php
index b9fd911ad5c..99de1651000 100644
--- a/mod/assign/feedback/editpdf/classes/event/observer.php
+++ b/mod/assign/feedback/editpdf/classes/event/observer.php
@@ -24,7 +24,9 @@
namespace assignfeedback_editpdf\event;
/**
- * Simple task to run the grade cron.
+ * An event observer.
+ * @copyright 2016 Damyon Wiese
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class observer {
diff --git a/mod/assign/feedback/editpdf/classes/renderer.php b/mod/assign/feedback/editpdf/classes/renderer.php
index b47834f1b61..d91bc85d035 100644
--- a/mod/assign/feedback/editpdf/classes/renderer.php
+++ b/mod/assign/feedback/editpdf/classes/renderer.php
@@ -210,8 +210,10 @@ class assignfeedback_editpdf_renderer extends plugin_renderer_base {
$canvas = html_writer::div($loading, 'drawingcanvas');
$canvas = html_writer::div($canvas, 'drawingregion');
$changesmessage = html_writer::tag('div',
- get_string('draftchangessaved', 'assignfeedback_editpdf'),
- array('class'=>'assignfeedback_editpdf_unsavedchanges warning label label-info'));
+ get_string('draftchangessaved', 'assignfeedback_editpdf'),
+ array(
+ 'class' => 'assignfeedback_editpdf_unsavedchanges warning label label-info'
+ ));
$changesmessage = html_writer::div($changesmessage, 'unsaved-changes');
$canvas .= $changesmessage;
diff --git a/mod/assign/feedback/editpdf/classes/task/convert_submissions.php b/mod/assign/feedback/editpdf/classes/task/convert_submissions.php
index 9a4e1a93b7e..2c97a944154 100644
--- a/mod/assign/feedback/editpdf/classes/task/convert_submissions.php
+++ b/mod/assign/feedback/editpdf/classes/task/convert_submissions.php
@@ -29,7 +29,9 @@ use context_module;
use assign;
/**
- * Simple task to run the grade cron.
+ * Simple task to convert submissions to pdf in the background.
+ * @copyright 2016 Damyon Wiese
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class convert_submissions extends scheduled_task {
diff --git a/mod/assign/feedback/editpdf/db/tasks.php b/mod/assign/feedback/editpdf/db/tasks.php
index a610addcb59..e9e2815d338 100644
--- a/mod/assign/feedback/editpdf/db/tasks.php
+++ b/mod/assign/feedback/editpdf/db/tasks.php
@@ -15,13 +15,9 @@
// along with Moodle. If not, see