mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-80332 core: Coding style fixes
This commit is contained in:
parent
c9030a8243
commit
bb80e4f90d
@ -22,12 +22,13 @@ use core\hook\stoppable_trait;
|
||||
/**
|
||||
* Allow plugins to callback as soon possible after user has passed MFA.
|
||||
*
|
||||
* @package core
|
||||
* @package tool_mfa
|
||||
* @copyright 2024 Juan Leyva
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class after_user_passed_mfa implements described_hook,
|
||||
\Psr\EventDispatcher\StoppableEventInterface {
|
||||
class after_user_passed_mfa implements
|
||||
described_hook,
|
||||
\Psr\EventDispatcher\StoppableEventInterface {
|
||||
use stoppable_trait;
|
||||
|
||||
/**
|
||||
|
@ -24,7 +24,6 @@ namespace tool_mobile\local\hooks\user;
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class after_complete_login {
|
||||
|
||||
/**
|
||||
* Callback to recover $SESSION->wantsurl.
|
||||
*
|
||||
@ -36,7 +35,6 @@ class after_complete_login {
|
||||
// Check if the user is doing a mobile app launch, if that's the case, ensure $SESSION->wantsurl is correctly set.
|
||||
if (!NO_MOODLE_COOKIES && !empty($_COOKIE['tool_mobile_launch'])) {
|
||||
if (empty($SESSION->wantsurl) || strpos($SESSION->wantsurl, '/tool/mobile/launch.php') === false) {
|
||||
|
||||
$params = json_decode($_COOKIE['tool_mobile_launch'], true);
|
||||
$SESSION->wantsurl = (new \moodle_url("/$CFG->admin/tool/mobile/launch.php", $params))->out(false);
|
||||
}
|
||||
|
@ -26,8 +26,9 @@ use core\hook\stoppable_trait;
|
||||
* @copyright 2024 Juan Leyva
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class after_complete_login implements described_hook,
|
||||
\Psr\EventDispatcher\StoppableEventInterface {
|
||||
class after_complete_login implements
|
||||
described_hook,
|
||||
\Psr\EventDispatcher\StoppableEventInterface {
|
||||
use stoppable_trait;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user