MDL-33483 repository: Coding style tidyup

This commit is contained in:
Andrew Nicols 2017-02-27 11:31:00 +08:00
parent eccbea3dd0
commit b117fb3db9
2 changed files with 1 additions and 2 deletions

View file

@ -48,5 +48,6 @@ function xmldb_repository_googledocs_upgrade($oldversion) {
// Plugin savepoint reached. // Plugin savepoint reached.
upgrade_plugin_savepoint(true, 2017011100, 'repository', 'googledocs'); upgrade_plugin_savepoint(true, 2017011100, 'repository', 'googledocs');
} }
return true; return true;
} }

View file

@ -502,7 +502,6 @@ class repository_googledocs extends repository {
* @param string $classname repository class name. * @param string $classname repository class name.
*/ */
public static function type_config_form($mform, $classname = 'repository') { public static function type_config_form($mform, $classname = 'repository') {
$callbackurl = new moodle_url(self::CALLBACKURL); $callbackurl = new moodle_url(self::CALLBACKURL);
$a = new stdClass; $a = new stdClass;
@ -571,7 +570,6 @@ class repository_googledocs extends repository {
$mform->addElement('select', 'spreadsheetformat', get_string('spreadsheetformat', 'repository_googledocs'), $spreadsheetformat); $mform->addElement('select', 'spreadsheetformat', get_string('spreadsheetformat', 'repository_googledocs'), $spreadsheetformat);
$mform->setDefault('spreadsheetformat', $spreadsheetformat['xlsx']); $mform->setDefault('spreadsheetformat', $spreadsheetformat['xlsx']);
$mform->setType('spreadsheetformat', PARAM_ALPHANUM); $mform->setType('spreadsheetformat', PARAM_ALPHANUM);
} }
} }
// Icon from: http://www.iconspedia.com/icon/google-2706.html. // Icon from: http://www.iconspedia.com/icon/google-2706.html.