Skip to content

Commit

Permalink
Fixed coding standards issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rlorenzo committed Aug 13, 2015
1 parent b32d1be commit b726ca2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
10 changes: 9 additions & 1 deletion backup/moodle2/backup_zoom_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Define the complete zoom structure for backup, with file and id annotations
* Defines backup_zoom_activity_structure_step class.
*
* @package mod_zoom
* @copyright 2015 UC Regents
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* Define the complete zoom structure for backup, with file and id annotations.
*
* @package mod_zoom
* @category backup
Expand Down
17 changes: 17 additions & 0 deletions classes/task/update_meetings.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,29 @@

require_once($CFG->dirroot.'/mod/zoom/locallib.php');

/**
* Scheduled task to sychronize meeting data.
*
* @package mod_zoom
* @copyright 2015 UC Regents
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class update_meetings extends \core\task\scheduled_task {

/**
* Returns name of task.
*
* @return string
*/
public function get_name() {
return get_string('updatemeetings', 'mod_zoom');
}

/**
* Updates meetings that are not expired.
*
* @return boolean
*/
public function execute() {
global $DB;

Expand Down
2 changes: 1 addition & 1 deletion classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ protected function parse_zoom_object(&$zoom, $required, &$data) {
*/
protected function format_meeting_response($zoom) {
$response = &$this->lastresponse;
// "Undoing" the transformations in parse_zoom_object.
// Undoing the transformations in parse_zoom_object.
// Convert duration to seconds.
$response->duration *= 60;
// Convert string to timestamp.
Expand Down
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function definition() {

// Add standard grading elements.
$this->standard_grading_coursemodule_elements();
$mform->setDefault('grade',false);
$mform->setDefault('grade', false);

// Add standard elements, common to all modules.
$this->standard_coursemodule_elements();
Expand Down

0 comments on commit b726ca2

Please sign in to comment.