mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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
|
@ -1213,7 +1213,7 @@ class ddl_testcase extends database_driver_testcase {
|
|||
try {
|
||||
$result = $DB->insert_record('test_table_cust0', $record, false);
|
||||
} catch (dml_exception $e) {
|
||||
$result = false;;
|
||||
$result = false;
|
||||
}
|
||||
$this->resetDebugging();
|
||||
$this->assertFalse($result);
|
||||
|
|
|
@ -120,7 +120,7 @@ abstract class xml_database_importer extends database_importer {
|
|||
|
||||
case 'record' :
|
||||
$this->import_table_data($this->current_table, $this->current_row);
|
||||
$this->current_row = null;;
|
||||
$this->current_row = null;
|
||||
break;
|
||||
|
||||
case 'field' :
|
||||
|
|
|
@ -1545,7 +1545,7 @@ abstract class enrol_plugin {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return new moodle_url("/enrol/$name/unenrolself.php", array('enrolid'=>$instance->id));;
|
||||
return new moodle_url("/enrol/$name/unenrolself.php", array('enrolid'=>$instance->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -515,7 +515,7 @@ function events_trigger($eventname, $eventdata) {
|
|||
events_get_handlers('reset');
|
||||
|
||||
} else {
|
||||
$errormessage = 'Unknown error';;
|
||||
$errormessage = 'Unknown error';
|
||||
$result = events_dispatch($handler, $eventdata, $errormessage);
|
||||
if ($result === true) {
|
||||
// everything is fine - event dispatched
|
||||
|
@ -615,4 +615,4 @@ function events_pending_count($eventname) {
|
|||
WHERE h.eventname = ?";
|
||||
|
||||
return $DB->count_records_sql($sql, array($eventname));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1318,7 +1318,7 @@ function download_file_content($url, $headers=null, $postdata=null, $fullrespons
|
|||
$response->error = 'Unknown cURL error';
|
||||
|
||||
} else {
|
||||
$response = new stdClass();;
|
||||
$response = new stdClass();
|
||||
$response->status = (string)$info['http_code'];
|
||||
$response->headers = $received->headers;
|
||||
$response->response_code = $received->headers[0];
|
||||
|
|
|
@ -1674,7 +1674,7 @@ class file_storage {
|
|||
$reference['component'] = is_null($params['component']) ? null : clean_param($params['component'], PARAM_COMPONENT);
|
||||
$reference['itemid'] = is_null($params['itemid']) ? null : clean_param($params['itemid'], PARAM_INT);
|
||||
$reference['filearea'] = is_null($params['filearea']) ? null : clean_param($params['filearea'], PARAM_AREA);
|
||||
$reference['filepath'] = is_null($params['filepath']) ? null : clean_param($params['filepath'], PARAM_PATH);;
|
||||
$reference['filepath'] = is_null($params['filepath']) ? null : clean_param($params['filepath'], PARAM_PATH);
|
||||
$reference['filename'] = is_null($params['filename']) ? null : clean_param($params['filename'], PARAM_FILE);
|
||||
return base64_encode(serialize($reference));
|
||||
}
|
||||
|
|
|
@ -5879,7 +5879,7 @@ function get_file_browser() {
|
|||
function get_file_packer($mimetype='application/zip') {
|
||||
global $CFG;
|
||||
|
||||
static $fp = array();;
|
||||
static $fp = array();
|
||||
|
||||
if (isset($fp[$mimetype])) {
|
||||
return $fp[$mimetype];
|
||||
|
|
|
@ -65,7 +65,7 @@ class MoodleODSWorkbook {
|
|||
*/
|
||||
function &add_format($properties = array()) {
|
||||
$format = new MoodleODSFormat($properties);
|
||||
return $format;;
|
||||
return $format;
|
||||
}
|
||||
|
||||
/* Close the Moodle Workbook
|
||||
|
|
|
@ -2089,7 +2089,7 @@ class core_renderer extends renderer_base {
|
|||
$attributes = array('src'=>$src, 'alt'=>$alt, 'title'=>$alt, 'class'=>$class, 'width'=>$size, 'height'=>$size);
|
||||
|
||||
// get the image html output fisrt
|
||||
$output = html_writer::empty_tag('img', $attributes);;
|
||||
$output = html_writer::empty_tag('img', $attributes);
|
||||
|
||||
// then wrap it in link if needed
|
||||
if (!$userpicture->link) {
|
||||
|
|
|
@ -335,7 +335,7 @@ class portfolio_exporter {
|
|||
$mform->display();
|
||||
echo $OUTPUT->box_end();
|
||||
echo $OUTPUT->footer();
|
||||
return false;;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
$this->noexportconfig = true;
|
||||
|
|
|
@ -406,7 +406,7 @@ function stats_cron_daily($maxdays=1) {
|
|||
|
||||
SELECT 'enrolments', $nextmidnight, ".SITEID.", $defaultfproleid,
|
||||
$totalactiveusers AS stat1, $dailyactiveusers AS stat2" .
|
||||
$DB->sql_null_from_clause();;
|
||||
$DB->sql_null_from_clause();
|
||||
|
||||
if ($logspresent && !stats_run_query($sql)) {
|
||||
$failed = true;
|
||||
|
|
|
@ -41,7 +41,7 @@ class conditionlib_testcase extends advanced_testcase {
|
|||
|
||||
$CFG->enableavailability = 1;
|
||||
$CFG->enablecompletion = 1;
|
||||
$user = $this->getDataGenerator()->create_user();;
|
||||
$user = $this->getDataGenerator()->create_user();
|
||||
$this->setUser($user);
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ class navigation_node_testcase extends basic_testcase {
|
|||
$demo5->add('activity1', null, navigation_node::TYPE_ACTIVITY, null, 'activity1')->make_active();
|
||||
$hiddendemo1 = $this->node->add('hiddendemo1', $this->inactiveurl, navigation_node::TYPE_CATEGORY, null, 'hiddendemo1', new pix_icon('i/course', ''));
|
||||
$hiddendemo1->hidden = true;
|
||||
$hiddendemo1->add('hiddendemo2', $this->inactiveurl, navigation_node::TYPE_COURSE, null, 'hiddendemo2', new pix_icon('i/course', ''))->helpbutton = 'Here is a help button';;
|
||||
$hiddendemo1->add('hiddendemo2', $this->inactiveurl, navigation_node::TYPE_COURSE, null, 'hiddendemo2', new pix_icon('i/course', ''))->helpbutton = 'Here is a help button';
|
||||
$hiddendemo1->add('hiddendemo3', $this->inactiveurl, navigation_node::TYPE_COURSE,null, 'hiddendemo3', new pix_icon('i/course', ''))->display = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -786,7 +786,7 @@ function upgrade_plugins_blocks($startcallback, $endcallback, $verbose) {
|
|||
require_once($fullblock.'/db/install.php');
|
||||
// Set installation running flag, we need to recover after exception or error
|
||||
set_config('installrunning', 1, 'block_'.$blockname);
|
||||
$post_install_function = 'xmldb_block_'.$blockname.'_install';;
|
||||
$post_install_function = 'xmldb_block_'.$blockname.'_install';
|
||||
$post_install_function();
|
||||
unset_config('installrunning', 'block_'.$blockname);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue