Skip to content

Commit 967c2bb

Browse files
Merge pull request #31 from catalyst/update-MOODLE_401_STABLE_version
Update version.php, fix codestandards
2 parents 5ce32d8 + d05a36f commit 967c2bb

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

classes/privacy/provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
4040
*
4141
* @return string
4242
*/
43-
public static function get_reason() : string {
43+
public static function get_reason(): string {
4444
return 'privacy:metadata';
4545
}
4646
}

classes/rule_validator_interface.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616

17+
namespace tool_redirects;
18+
1719
/**
1820
* Rule validator interface.
1921
*
@@ -22,9 +24,6 @@
2224
* @copyright 2018 Catalyst IT Australia {@link http://www.catalyst-au.net}
2325
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2426
*/
25-
26-
namespace tool_redirects;
27-
2827
interface rule_validator_interface {
2928

3029
/** Check if the rule is valid.

tests/phpunit/regex_validator_test.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ class regex_validator_test extends \advanced_testcase {
3434

3535
/**
3636
* Provider
37+
*
38+
* @return array
3739
*/
38-
public function provider_for_test_it_validates_the_regex() {
40+
public function provider_for_test_it_validates_the_regex(): array {
3941
return [
4042
'Empty RegEx is valid.' => ['', true],
4143
'RegEx is too short' => ['//', true],
@@ -63,8 +65,10 @@ public function test_it_validates_the_regex($regex, $acceptable) {
6365

6466
/**
6567
* Provider
68+
*
69+
* @return array
6670
*/
67-
public function provider_for_test_it_throws_exception_if_regex_is_not_string() {
71+
public function provider_for_test_it_throws_exception_if_regex_is_not_string(): array {
6872
return [
6973
[array(1)],
7074
[new \stdClass()],

version.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

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

28-
$plugin->version = 2024120200;
29-
$plugin->release = 2024120200; // Match release exactly to version.
30-
$plugin->requires = 2017051500; // Moodle 3.3.
28+
$plugin->version = 2025080600;
29+
$plugin->release = 2025080600; // Match release exactly to version.
30+
$plugin->requires = 2022112800; // Moodle 4.1.
3131
$plugin->component = 'tool_redirects';
3232
$plugin->maturity = MATURITY_STABLE;
33-
$plugin->supported = [33, 405]; // Supports Moodle 3.5 or later.
33+
$plugin->supported = [401, 405]; // Supports Moodle 4.1 or later.

0 commit comments

Comments
 (0)