MDL-33122 Coding style cleanup during integration

This commit is contained in:
Sam Hemelryk
2012-05-22 11:33:52 +12:00
parent 4c32b79957
commit ac12e3b42e
3 changed files with 12 additions and 15 deletions
+4 -5
View File
@@ -1,5 +1,4 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -16,15 +15,15 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Installation for the URL repository
*
* @package repository_url
* @category repository
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Create a instance of url repository
* Create a default instance of the URL repository
*
* @return bool A status indicating success or failure
*/
@@ -32,8 +31,8 @@ function xmldb_repository_url_install() {
global $CFG;
$result = true;
require_once($CFG->dirroot.'/repository/lib.php');
$url_plugin = new repository_type('url', array(), true);
if(!$id = $url_plugin->create(true)) {
$urlplugin = new repository_type('url', array(), true);
if(!$id = $urlplugin->create(true)) {
$result = false;
}
return $result;
+4 -5
View File
@@ -1,5 +1,4 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -16,15 +15,15 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Installation file for the wikimedia repository
*
* @package repository_wikimedia
* @category repository
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Create a instance of wikimedia repository
* Create a default instance of the wikimedia repository
*
* @return bool A status indicating success or failure
*/
@@ -32,8 +31,8 @@ function xmldb_repository_wikimedia_install() {
global $CFG;
$result = true;
require_once($CFG->dirroot.'/repository/lib.php');
$wikimedia_plugin = new repository_type('wikimedia', array(), true);
if(!$id = $wikimedia_plugin->create(true)) {
$wikimediaplugin = new repository_type('wikimedia', array(), true);
if(!$id = $wikimediaplugin->create(true)) {
$result = false;
}
return $result;
+4 -5
View File
@@ -1,5 +1,4 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -16,15 +15,15 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Installation file for the Youtube repository.
*
* @package repository_youtube
* @category repository
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Create a instance of youtube repository
* Create a default instance of the youtube repository
*
* @return bool A status indicating success or failure
*/
@@ -32,8 +31,8 @@ function xmldb_repository_youtube_install() {
global $CFG;
$result = true;
require_once($CFG->dirroot.'/repository/lib.php');
$youtube_plugin = new repository_type('youtube', array(), true);
if(!$id = $youtube_plugin->create(true)) {
$youtubeplugin = new repository_type('youtube', array(), true);
if(!$id = $youtubeplugin->create(true)) {
$result = false;
}
return $result;