MDL-80332 core: Coding style fixes

This commit is contained in:
Andrew Nicols 2024-03-26 22:43:12 +08:00
parent c9030a8243
commit bb80e4f90d
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
3 changed files with 7 additions and 7 deletions

View File

@ -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;
/**

View File

@ -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);
}

View File

@ -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;
/**