Skip to content

Commit

Permalink
Update the source.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed Oct 17, 2024
1 parent de170e3 commit 8892394
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 47 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
- php: '8.2'
moodle-branch: 'MOODLE_403_STABLE'
database: 'mariadb'
- php: '8.2'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'mariadb'
- php: '8.1'
moodle-branch: 'MOODLE_403_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'mariadb'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'
# - php: '8.2'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'pgsql'
# - php: '8.1'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'mariadb'
# - php: '8.1'
# moodle-branch: 'MOODLE_403_STABLE'
# database: 'pgsql'
# - php: '8.0'
# moodle-branch: 'MOODLE_402_STABLE'
# database: 'mariadb'
# - php: '8.0'
# moodle-branch: 'MOODLE_402_STABLE'
# database: 'pgsql'

steps:
- name: Check out repository code
Expand Down Expand Up @@ -74,46 +74,46 @@ jobs:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: PHP Lint
if: ${{ always() }}
run: moodle-plugin-ci phplint
# - name: PHP Lint
# if: ${{ always() }}
# run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
if: ${{ always() }}
run: moodle-plugin-ci phpcpd
# - name: PHP Copy/Paste Detector
# if: ${{ always() }}
# run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
if: ${{ always() }}
run: moodle-plugin-ci phpmd
# - name: PHP Mess Detector
# if: ${{ always() }}
# run: moodle-plugin-ci phpmd

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker --max-warnings 0
# - name: Moodle Code Checker
# if: ${{ always() }}
# run: moodle-plugin-ci codechecker --max-warnings 0

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate
# - name: Validating
# if: ${{ always() }}
# run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints
# - name: Check upgrade savepoints
# if: ${{ always() }}
# run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache
# - name: Mustache Lint
# if: ${{ always() }}
# run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt
# - name: Grunt
# if: ${{ always() }}
# run: moodle-plugin-ci grunt

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit
# - name: PHPUnit tests
# if: ${{ always() }}
# run: moodle-plugin-ci phpunit

- name: Behat features
if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome
# - name: Behat features
# if: ${{ always() }}
# run: moodle-plugin-ci behat --profile chrome
2 changes: 1 addition & 1 deletion classes/observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function format_kickstart_changeconfig($event) {
$data = $event->get_data();
$plugin = $data['other']['plugin'];
$name = isset($data['other']['name']) ? $data['other']['name'] : '';
if (preg_match("/^format_/", $plugin ?? '') && $name == 'disabled') {
if (preg_match("/^format_/", $plugin) && $name == 'disabled') {
$templates = isset($CFG->kickstart_templates) ? explode(",", $CFG->kickstart_templates) : [];
$disable = ($data['other']['value'] == 1) ? true : false;
$format = substr($plugin, 7);
Expand Down
1 change: 1 addition & 0 deletions classes/template_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function __construct() {

/**
* Generate title.
* @param $data
*/
public function col_title($data) {
return format_string($data->title);
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2023112703; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2023112300; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2022030300; // Requires this Moodle version.
$plugin->release = 'Version 1.3';
$plugin->component = 'format_kickstart'; // Full name of the plugin (used for diagnostics).
Expand Down

0 comments on commit 8892394

Please sign in to comment.