Browse Source

Fix coding guideline stuff found by plugins db check.

MOODLE_33_STABLE
Dan Marsden 8 years ago
parent
commit
4924a32b3a
  1. 5
      classes/attendance_webservices_handler.php
  2. 4
      db/upgrade.php
  3. 3
      externallib.php
  4. 12
      styles.css
  5. 3
      tests/attendance_webservices_test.php

5
classes/attendance_webservices_handler.php

@ -14,12 +14,15 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Web Services for Attendance plugin.
*
* @package local_attendance
* @package mod_attendance
* @copyright 2015 Caio Bressan Doneda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
require_once(dirname(__FILE__).'/../../../config.php');
require_once(dirname(__FILE__).'/../locallib.php');
require_once(dirname(__FILE__).'/structure.php');

4
db/upgrade.php

@ -46,7 +46,7 @@ function xmldb_attendance_upgrade($oldversion=0) {
$dbman->add_field($table, $field);
}
upgrade_mod_savepoint($result, 2014112000, 'attendance');
upgrade_mod_savepoint(true, 2014112000, 'attendance');
}
if ($oldversion < 2014112001) {
@ -85,7 +85,7 @@ function xmldb_attendance_upgrade($oldversion=0) {
// Delete old capabilities.
$DB->delete_records_select('capabilities', 'component = ?', array('mod_attforblock'));
upgrade_plugin_savepoint($result, 2014112001, 'mod', 'attendance');
upgrade_mod_savepoint(true, 2014112001, 'attendance');
}
if ($oldversion < 2015040501) {

3
externallib.php

@ -14,8 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Externallib.php file for attendance plugin.
*
* @package local_attendance
* @package mod_attendance
* @copyright 2015 Caio Bressan Doneda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

12
styles.css

@ -1,5 +1,5 @@
.path-mod-attendance .attbtn {
border:1px solid #AAAAAA;
border: 1px solid #aaa;
border-radius: 5px;
margin-left: 2px;
margin-right: 2px;
@ -99,11 +99,11 @@
}
.path-mod-attendance table.userinfobox {
border: 1px solid #EEEEEE;
border: 1px solid #eee;
padding: 0;
}
.path-mod-attendance table.userinfobox td.left {
background-color: #EEEEEE;
background-color: #eee;
padding: 30px 10px;
}
.path-mod-attendance table.attlist td.c0 {
@ -152,11 +152,11 @@
}
.path-mod-attendance .attendancestatus-E {
color: #00AEE3;
color: #00aee3;
}
.path-mod-attendance .attendancestatus-L {
color: #F7931E;
color: #f7931e;
}
.path-mod-attendance .attendancestatus-A {
@ -164,7 +164,7 @@
}
.path-mod-attendance .attreport .contrast {
background-color: #EAEAEA;
background-color: #eaeaea;
}
.path-mod-attendance .attreport .center {

3
tests/attendance_webservices_test.php

@ -14,8 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Webservices test for attendance plugin.
*
* @package local_attendance
* @package mod_attendance
* @copyright 2015 Caio Bressan Doneda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

Loading…
Cancel
Save