Файловый менеджер - Редактировать - /var/www/html/libraries/src/Event/Plugin/System/Webauthn/AjaxChallenge.php
Ðазад
<?php /** * Joomla! Content Management System * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Event\Plugin\System\Webauthn; use Joomla\CMS\Event\AbstractImmutableEvent; use Joomla\CMS\Event\Result\ResultAware; use Joomla\CMS\Event\Result\ResultAwareInterface; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Concrete event class for the onAjaxWebauthnChallenge event * * @since 4.2.0 */ class AjaxChallenge extends AbstractImmutableEvent implements ResultAwareInterface { use ResultAware; /** * Make sure the result is valid JSON or boolean false * * @param mixed $data The data to check * * @return void * @since 4.2.0 */ public function typeCheckResult($data): void { if ($data === false) { return; } if (!\is_string($data) || @json_decode($data) === null) { throw new \InvalidArgumentException(\sprintf('Event %s only accepts JSON results.', $this->getName())); } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка