MDL-58398 core_files: Fix phpdoc and other minor issues

This commit is contained in:
Ankit Agarwal 2017-03-27 14:37:09 +05:30
parent 216ea39be7
commit 92a951c5cd
5 changed files with 22 additions and 19 deletions

View file

@ -26,8 +26,8 @@ namespace fileconverter_unoconv;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir . '/filelib.php');
use stored_file;
use stored_file;
use \core_files\conversion;
/**
@ -118,9 +118,9 @@ class converter implements \core_files\converter_interface {
try {
// This function can either return false, or throw an exception so we need to handle both.
if ($file->copy_content_to($filename) === false) {
throw new file_exception('storedfileproblem', 'Could not copy file contents to temp file.');
throw new \file_exception('storedfileproblem', 'Could not copy file contents to temp file.');
}
} catch (file_exception $fe) {
} catch (\file_exception $fe) {
throw $fe;
}
@ -169,7 +169,7 @@ class converter implements \core_files\converter_interface {
/**
* Generate and serve the test document.
*
* @return stored_file
* @return void
*/
public function serve_test_document() {
global $CFG;
@ -267,7 +267,7 @@ class converter implements \core_files\converter_interface {
/**
* Whether the plugin is fully configured.
*
* @return bool
* @return \stdClass
*/
public static function test_unoconv_path() {
global $CFG;

View file

@ -24,7 +24,6 @@
defined('MOODLE_INTERNAL') || die();
/**
* A set of tests for some of the unoconv functionality within Moodle.
*