Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class provider implements \core_privacy\local\metadata\null_provider {
*
* @return string
*/
public static function get_reason() : string {
public static function get_reason(): string {
return 'privacy:metadata';
}
}
5 changes: 2 additions & 3 deletions classes/rule_validator_interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

namespace tool_redirects;

/**
* Rule validator interface.
*
Expand All @@ -22,9 +24,6 @@
* @copyright 2018 Catalyst IT Australia {@link http://www.catalyst-au.net}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace tool_redirects;

interface rule_validator_interface {

/** Check if the rule is valid.
Expand Down
8 changes: 6 additions & 2 deletions tests/phpunit/regex_validator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ class regex_validator_test extends \advanced_testcase {

/**
* Provider
*
* @return array
*/
public function provider_for_test_it_validates_the_regex() {
public function provider_for_test_it_validates_the_regex(): array {
return [
'Empty RegEx is valid.' => ['', true],
'RegEx is too short' => ['//', true],
Expand Down Expand Up @@ -63,8 +65,10 @@ public function test_it_validates_the_regex($regex, $acceptable) {

/**
* Provider
*
* @return array
*/
public function provider_for_test_it_throws_exception_if_regex_is_not_string() {
public function provider_for_test_it_throws_exception_if_regex_is_not_string(): array {
return [
[array(1)],
[new \stdClass()],
Expand Down
8 changes: 4 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

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

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