Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

require_once($CFG->libdir . '/filelib.php');

use \core_files\conversion;
use core_files\conversion;

/**
* Class for converting files between different formats using unoconv over resque.
Expand Down
4 changes: 2 additions & 2 deletions classes/unoconv.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

require_once($CFG->libdir . '/filelib.php');

use \core_files\conversion;
use core_files\conversion;

/**
* Class for interfacing with unoconv.
Expand Down Expand Up @@ -432,7 +432,7 @@ protected function force_utf8_encoding($file = false) {
'filearea' => $file->get_filearea(),
'itemid' => 0,
'filepath' => $file->get_filepath(),
'filename' => (string) time()
'filename' => (string) time(),
];

$newfile = $fs->create_file_from_string($filerecord, $textcontent);
Expand Down
4 changes: 2 additions & 2 deletions cli/run_conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

use \fileconverter_resque\converter;
use \core_files\conversion;
use fileconverter_resque\converter;
use core_files\conversion;

define('CLI_SCRIPT', true);

Expand Down
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

use \fileconverter_resque\converter;
use fileconverter_resque\converter;

defined('MOODLE_INTERNAL') || die();

Expand Down
4 changes: 2 additions & 2 deletions tests/converter_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace fileconverter_resque;
use \fileconverter_resque\converter;
use \core_files\conversion;
use fileconverter_resque\converter;
use core_files\conversion;

defined('MOODLE_INTERNAL') || die();

Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/testable_converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

use \fileconverter_resque\converter;
use \core_files\conversion;
use fileconverter_resque\converter;
use core_files\conversion;

defined('MOODLE_INTERNAL') || die();

Expand Down
6 changes: 3 additions & 3 deletions tests/fixtures/testable_unoconv.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

use \fileconverter_resque\converter;
use \fileconverter_resque\unoconv;
use \core_files\conversion;
use fileconverter_resque\converter;
use fileconverter_resque\unoconv;
use core_files\conversion;

/**
* A testable unoconv object to expose hidden things.
Expand Down
4 changes: 2 additions & 2 deletions tests/unoconv_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace fileconverter_resque;
use \fileconverter_resque\converter;
use \core_files\conversion;
use fileconverter_resque\converter;
use core_files\conversion;

defined('MOODLE_INTERNAL') || die();

Expand Down