mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-36357 cleanup - remove double semicolons
This commit is contained in:
parent
a3f3ea2684
commit
0e35ba6ffc
53 changed files with 66 additions and 66 deletions
|
@ -65,7 +65,7 @@ class repository_coursefiles extends repository {
|
|||
if (!empty($encodedpath)) {
|
||||
$params = unserialize(base64_decode($encodedpath));
|
||||
if (is_array($params)) {
|
||||
$filepath = is_null($params['filepath']) ? NULL : clean_param($params['filepath'], PARAM_PATH);;
|
||||
$filepath = is_null($params['filepath']) ? NULL : clean_param($params['filepath'], PARAM_PATH);
|
||||
$filename = is_null($params['filename']) ? NULL : clean_param($params['filename'], PARAM_FILE);
|
||||
$context = context::instance_by_id(clean_param($params['contextid'], PARAM_INT));
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ class repository_coursefiles extends repository {
|
|||
$contextid = clean_param($params['contextid'], PARAM_INT);
|
||||
$fileitemid = clean_param($params['itemid'], PARAM_INT);
|
||||
$filename = clean_param($params['filename'], PARAM_FILE);
|
||||
$filepath = clean_param($params['filepath'], PARAM_PATH);;
|
||||
$filepath = clean_param($params['filepath'], PARAM_PATH);
|
||||
$filearea = clean_param($params['filearea'], PARAM_AREA);
|
||||
$component = clean_param($params['component'], PARAM_COMPONENT);
|
||||
$context = context::instance_by_id($contextid);
|
||||
|
|
|
@ -1325,7 +1325,7 @@ abstract class repository {
|
|||
$event['existingfile'] = new stdClass;
|
||||
$event['existingfile']->filepath = $record->filepath;
|
||||
$event['existingfile']->filename = $old_filename;
|
||||
$event['existingfile']->url = moodle_url::make_draftfile_url($draftitemid, $record->filepath, $old_filename)->out();;
|
||||
$event['existingfile']->url = moodle_url::make_draftfile_url($draftitemid, $record->filepath, $old_filename)->out();
|
||||
return $event;
|
||||
}
|
||||
if ($file = $fs->create_file_from_pathname($record, $thefile)) {
|
||||
|
|
|
@ -61,7 +61,7 @@ class repository_local extends repository {
|
|||
$component = is_null($params['component']) ? NULL : clean_param($params['component'], PARAM_COMPONENT);
|
||||
$filearea = is_null($params['filearea']) ? NULL : clean_param($params['filearea'], PARAM_AREA);
|
||||
$itemid = is_null($params['itemid']) ? NULL : clean_param($params['itemid'], PARAM_INT);
|
||||
$filepath = is_null($params['filepath']) ? NULL : clean_param($params['filepath'], PARAM_PATH);;
|
||||
$filepath = is_null($params['filepath']) ? NULL : clean_param($params['filepath'], PARAM_PATH);
|
||||
$filename = is_null($params['filename']) ? NULL : clean_param($params['filename'], PARAM_FILE);
|
||||
$context = context::instance_by_id(clean_param($params['contextid'], PARAM_INT));
|
||||
}
|
||||
|
|
|
@ -267,7 +267,7 @@ switch ($action) {
|
|||
$event['existingfile'] = new stdClass;
|
||||
$event['existingfile']->filepath = $saveas_path;
|
||||
$event['existingfile']->filename = $saveas_filename;
|
||||
$event['existingfile']->url = moodle_url::make_draftfile_url($itemid, $saveas_path, $saveas_filename)->out();;
|
||||
$event['existingfile']->url = moodle_url::make_draftfile_url($itemid, $saveas_path, $saveas_filename)->out();
|
||||
} else {
|
||||
|
||||
$storedfile = $fs->create_file_from_reference($record, $repo_id, $reference);
|
||||
|
|
|
@ -63,7 +63,7 @@ class repository_user extends repository {
|
|||
if (!empty($encodedpath)) {
|
||||
$params = unserialize(base64_decode($encodedpath));
|
||||
if (is_array($params)) {
|
||||
$filepath = clean_param($params['filepath'], PARAM_PATH);;
|
||||
$filepath = clean_param($params['filepath'], PARAM_PATH);
|
||||
$filename = clean_param($params['filename'], PARAM_FILE);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue