Skip to content

Commit 8f34ee6

Browse files
committed
Adhere to Moodle coding style as of 2026.
1 parent 82f79b6 commit 8f34ee6

79 files changed

Lines changed: 1713 additions & 972 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/moodle-plugin-ci.yml

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,31 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
include:
10+
php: ['8.1', '8.2', '8.3', '8.4']
11+
moodle-branch: [
12+
'MOODLE_405_STABLE',
13+
'MOODLE_500_STABLE',
14+
'MOODLE_501_STABLE',
15+
'MOODLE_502_STABLE'
16+
]
17+
database: ['mariadb', 'pgsql']
18+
exclude:
1119
- php: '8.2'
12-
moodle-branch: 'MOODLE_500_STABLE'
13-
database: pgsql
14-
- php: '8.3'
15-
moodle-branch: 'MOODLE_500_STABLE'
16-
database: pgsql
17-
- php: '8.4'
18-
moodle-branch: 'MOODLE_500_STABLE'
19-
database: pgsql
20-
- php: '8.2'
21-
moodle-branch: 'MOODLE_500_STABLE'
22-
database: mariadb
23-
- php: '8.3'
24-
moodle-branch: 'MOODLE_500_STABLE'
25-
database: mariadb
26-
- php: '8.4'
27-
moodle-branch: 'MOODLE_500_STABLE'
28-
database: mariadb
20+
moodle-branch: 'MOODLE_502_STABLE'
21+
- php: '8.1'
22+
moodle-branch: 'MOODLE_502_STABLE'
2923
- php: '8.2'
3024
moodle-branch: 'MOODLE_501_STABLE'
31-
database: pgsql
32-
- php: '8.3'
25+
- php: '8.1'
3326
moodle-branch: 'MOODLE_501_STABLE'
34-
database: pgsql
35-
- php: '8.4'
36-
moodle-branch: 'MOODLE_501_STABLE'
37-
database: pgsql
38-
- php: '8.2'
39-
moodle-branch: 'MOODLE_501_STABLE'
40-
database: mariadb
41-
- php: '8.3'
42-
moodle-branch: 'MOODLE_501_STABLE'
43-
database: mariadb
27+
- php: '8.1'
28+
moodle-branch: 'MOODLE_500_STABLE'
4429
- php: '8.4'
45-
moodle-branch: 'MOODLE_501_STABLE'
46-
database: mariadb
30+
moodle-branch: 'MOODLE_405_STABLE'
4731

4832
services:
4933
postgres:
50-
image: postgres:15
34+
image: postgres:17
5135
env:
5236
POSTGRES_USER: 'postgres'
5337
POSTGRES_HOST_AUTH_METHOD: 'trust'
@@ -84,14 +68,6 @@ jobs:
8468
ini-values: max_input_vars=5000
8569
coverage: none
8670

87-
- name: Install NVM and Node
88-
run: |
89-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
90-
export NVM_DIR="$HOME/.nvm"
91-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
92-
nvm install 20
93-
nvm use 20
94-
9571
- name: Deploy moodle-plugin-ci
9672
run: |
9773
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
@@ -141,7 +117,7 @@ jobs:
141117

142118
- name: Grunt
143119
if: ${{ always() }}
144-
run: moodle-plugin-ci grunt --max-lint-warnings 0 || true
120+
run: moodle-plugin-ci grunt --max-lint-warnings 0
145121

146122
- name: PHPUnit tests
147123
if: ${{ always() }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ moodle-mod_scheduler
22
====================
33

44

5-
[![Latest Release](https://img.shields.io/github/v/release/bostelm/moodle-mod_scheduler?sort=semver&color=orange)](https://github.com/bostelm/moodle-mod_scheduler/releases)
6-
[![Moodle plugin CI](https://github.com/bostelm/moodle-mod_scheduler/actions/workflows/moodle-plugin-ci.yml/badge.svg)](https://github.com/bostelm/moodle-mod_scheduler/actions/workflows/moodle-plugin-ci.yml)
5+
[![Latest Release](https://img.shields.io/github/v/release/learnweb/moodle-mod_scheduler?sort=semver&color=orange)](https://github.com/learnweb/moodle-mod_scheduler/releases)
6+
[![Moodle plugin CI](https://github.com/learnweb/moodle-mod_scheduler/actions/workflows/moodle-plugin-ci.yml/badge.svg)](https://github.com/learnweb/moodle-mod_scheduler/actions/workflows/moodle-plugin-ci.yml)
77

88
Appointment
99
Scheduler for Moodle

ajax.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use mod_scheduler\model\scheduler;
2828
use mod_scheduler\permission\scheduler_permissions;
2929

30-
require_once(dirname(dirname(dirname(__FILE__))).'/config.php');
30+
require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
3131
require_once('locallib.php');
3232

3333
$id = required_param('id', PARAM_INT);
@@ -46,9 +46,8 @@
4646

4747
switch ($action) {
4848
case 'saveseen':
49-
5049
$appid = required_param('appointmentid', PARAM_INT);
51-
list($slot, $app) = $scheduler->get_slot_appointment($appid);
50+
[$slot, $app] = $scheduler->get_slot_appointment($appid);
5251
$newseen = required_param('seen', PARAM_BOOL);
5352

5453
$permissions->ensure($permissions->can_edit_attended($app));

amd/build/delselected.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/delselected.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/saveseen.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)