From cf350bc4f4a2c0d82a3c216eb6172fa42e0b3f1c Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 7 Feb 2017 11:38:46 +0530 Subject: [PATCH] MDL-55762 assignpdf: Fix bug in phpdocs --- mod/assign/feedback/editpdf/classes/pdf.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/assign/feedback/editpdf/classes/pdf.php b/mod/assign/feedback/editpdf/classes/pdf.php index ffb4ab03f5f..99298c8b44d 100644 --- a/mod/assign/feedback/editpdf/classes/pdf.php +++ b/mod/assign/feedback/editpdf/classes/pdf.php @@ -409,8 +409,8 @@ class pdf extends \FPDI { /** * Generate an image of the specified page in the PDF * @param int $pageno the page to generate the image of - * @throws moodle_exception - * @throws coding_exception + * @throws \moodle_exception + * @throws \coding_exception * @return string the filename of the generated image */ public function get_image($pageno) { @@ -431,7 +431,7 @@ class pdf extends \FPDI { $imagefile = $this->imagefolder.'/image_page' . $pageno . '.png'; $generate = true; if (file_exists($imagefile)) { - if (filemtime($imagefile)>filemtime($this->filename)) { + if (filemtime($imagefile) > filemtime($this->filename)) { // Make sure the image is newer than the PDF file. $generate = false; } @@ -455,7 +455,7 @@ class pdf extends \FPDI { $fullerror .= get_string('result', 'assignfeedback_editpdf')."\n"; $fullerror .= htmlspecialchars($result) . "\n\n"; $fullerror .= get_string('output', 'assignfeedback_editpdf')."\n"; - $fullerror .= htmlspecialchars(implode("\n",$output)) . ''; + $fullerror .= htmlspecialchars(implode("\n", $output)) . ''; throw new \moodle_exception('errorgenerateimage', 'assignfeedback_editpdf', '', $fullerror); } } @@ -465,7 +465,7 @@ class pdf extends \FPDI { /** * Check to see if PDF is version 1.4 (or below); if not: use ghostscript to convert it - * @param stored_file $file + * @param \stored_file $file * @return string path to copy or converted pdf (false == fail) */ public static function ensure_pdf_compatible(\stored_file $file) { @@ -525,7 +525,7 @@ class pdf extends \FPDI { /** * Test that the configured path to ghostscript is correct and working. * @param bool $generateimage - If true - a test image will be generated to verify the install. - * @return stdClass + * @return \stdClass */ public static function test_gs_path($generateimage = true) { global $CFG;