Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed Nov 16, 2023
1 parent 10ccc24 commit 206b5ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion block_quickcourselist.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@
/**
* Class definition for the Quick Course List Block
*
* @uses block_base
* @package block_quickcourselist
*
* @author Mark Johnson <[email protected]> v2.0
* @author Onno Schuit v2.1 commissioned by Lesterhuis Training en Consultancy
* @author Luuk Verhoeven v3.8 to 3.10.1 commissioned by Lesterhuis Training en Consultancy
* @author Gemma Lesterhuis v3.10.2 commissioned by Lesterhuis Training en Consultancy
* @copyright 2010 Tauntons College, UK v2.0 and Lesterhuis Training en Consultancy v2.1 and further
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later till v2.1, for other versions Freeware
* https://ltnc.nl/ltc-plugin-freeware-licentie
*/
class block_quickcourselist extends block_base {

Expand All @@ -55,6 +63,8 @@ private static function get_sql_like_fields(): string {
}

/**
* Initialise the block
*
* @return void
*/
public function init() {
Expand Down Expand Up @@ -271,6 +281,8 @@ public static function get_courses(
}

/**
* get_coursecategory
*
* @param int $categoryid
*
* @return string
Expand Down
2 changes: 1 addition & 1 deletion quickcourselist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

/**
* Server-side script for generating response to AJAX search request
* TODO should be rewritten to use Moodle's external API
*
* @package block_quickcourselist
* @author Mark Johnson <[email protected]> v2.0
Expand All @@ -31,6 +30,7 @@
require_once('../../config.php');
defined('MOODLE_INTERNAL') || die;

// TODO should be rewritten to use Moodle's external API
require_login();
require_once($CFG->dirroot . '/blocks/moodleblock.class.php');
require_once($CFG->dirroot . '/blocks/quickcourselist/block_quickcourselist.php');
Expand Down

0 comments on commit 206b5ee

Please sign in to comment.