forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'moodle:main' into solrrag
- Loading branch information
Showing
547 changed files
with
11,687 additions
and
6,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ public function test_check_verification_code() { | |
$emailfactorclass = new \factor_email\factor('email'); | ||
$rc = new \ReflectionClass($emailfactorclass::class); | ||
$rcm = $rc->getMethod('check_verification_code'); | ||
$rcm->setAccessible(true); | ||
|
||
// Assigned email to be used in getting the email factor. | ||
$USER->email = '[email protected]'; | ||
|
@@ -76,7 +75,6 @@ public function test_check_verification_code() { | |
|
||
// Cleans up email records once MFA passed. | ||
$rcm = $rc->getMethod('post_pass_state'); | ||
$rcm->setAccessible(true); | ||
$rcm->invoke($emailfactorclass); | ||
|
||
// Check if the email records have been deleted. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,21 +14,12 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Cache manager. | ||
* | ||
* @package tool_usertours | ||
* @copyright 2016 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
namespace tool_usertours; | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
/** | ||
* Cache manager. | ||
* | ||
* @package tool_usertours | ||
* @copyright 2016 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
@@ -97,7 +88,7 @@ public static function get_matching_tourdata(\moodle_url $targetmatch) { | |
} | ||
|
||
$target = $targetmatch->out_as_local_url(); | ||
return array_filter($tours, function($tour) use ($possiblematches, $target) { | ||
return array_filter($tours, function ($tour) use ($possiblematches, $target) { | ||
if (in_array($tour->pathmatch, $possiblematches)) { | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,26 +14,16 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Step configuration detail class. | ||
* | ||
* @package tool_usertours | ||
* @copyright 2016 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
namespace tool_usertours; | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
/** | ||
* Step configuration detail class. | ||
* | ||
* @copyright 2016 Andrew Nicols <[email protected]> | ||
* @package tool_usertours | ||
* @copyright 2024 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class configuration { | ||
|
||
/** | ||
* @var TOURDEFAULT | ||
*/ | ||
|
@@ -60,7 +50,7 @@ public static function get_defaultable_keys() { | |
* @return mixed | ||
*/ | ||
public static function get_default_value($key) { | ||
switch($key) { | ||
switch ($key) { | ||
case 'placement': | ||
return 'bottom'; | ||
case 'orphan': | ||
|
@@ -77,7 +67,7 @@ public static function get_default_value($key) { | |
* @return mixed | ||
*/ | ||
public static function get_step_default_value($key) { | ||
switch($key) { | ||
switch ($key) { | ||
case 'placement': | ||
case 'orphan': | ||
case 'backdrop': | ||
|
@@ -94,10 +84,10 @@ public static function get_step_default_value($key) { | |
*/ | ||
public static function get_placement_options($default = null) { | ||
$values = [ | ||
'top' => get_string('above', 'tool_usertours'), | ||
'bottom' => get_string('below', 'tool_usertours'), | ||
'left' => get_string('left', 'tool_usertours'), | ||
'right' => get_string('right', 'tool_usertours'), | ||
'top' => get_string('above', 'tool_usertours'), | ||
'bottom' => get_string('below', 'tool_usertours'), | ||
'left' => get_string('left', 'tool_usertours'), | ||
'right' => get_string('right', 'tool_usertours'), | ||
]; | ||
|
||
if ($default === null) { | ||
|
@@ -114,5 +104,4 @@ public static function get_placement_options($default = null) { | |
|
||
return $values; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,18 +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/>. | ||
|
||
/** | ||
* The tool_usertours step_shown event. | ||
* | ||
* @package tool_usertours | ||
* @copyright 2016 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
namespace tool_usertours\event; | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
/** | ||
* The tool_usertours step_shown event. | ||
* | ||
|
@@ -41,7 +31,6 @@ | |
* } | ||
*/ | ||
class step_shown extends \core\event\base { | ||
|
||
/** | ||
* Init method. | ||
*/ | ||
|
Oops, something went wrong.