mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58398 core_files: Fix phpdoc and other minor issues
This commit is contained in:
parent
216ea39be7
commit
92a951c5cd
5 changed files with 22 additions and 19 deletions
|
@ -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;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
/**
|
||||
* A set of tests for some of the unoconv functionality within Moodle.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue