MDL-36357 cleanup - remove double semicolons

This commit is contained in:
Dan Poltawski 2012-11-15 09:51:26 +08:00
parent a3f3ea2684
commit 0e35ba6ffc
53 changed files with 66 additions and 66 deletions

View file

@ -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);

View file

@ -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' :

View file

@ -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));
}
/**

View file

@ -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));
}
}

View file

@ -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];

View file

@ -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));
}

View file

@ -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];

View file

@ -65,7 +65,7 @@ class MoodleODSWorkbook {
*/
function &add_format($properties = array()) {
$format = new MoodleODSFormat($properties);
return $format;;
return $format;
}
/* Close the Moodle Workbook

View file

@ -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) {

View file

@ -335,7 +335,7 @@ class portfolio_exporter {
$mform->display();
echo $OUTPUT->box_end();
echo $OUTPUT->footer();
return false;;
return false;
}
} else {
$this->noexportconfig = true;

View file

@ -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;

View file

@ -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);
}

View file

@ -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;
}

View file

@ -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);
}