Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * @author Alex Bilbie <[email protected]> * @copyright Copyright (c..

Decoded Output download

<?php

/**
 * @author      Alex Bilbie <[email protected]>
 * @copyright   Copyright (c) Alex Bilbie
 * @license     http://mit-license.org/
 *
 * @link        https://github.com/thephpleague/oauth2-server
 */

declare(strict_types=1);

namespace League\OAuth2\Server;

use League\OAuth2\Server\EventEmitting\AbstractEvent;
use Psr\Http\Message\ServerRequestInterface;

class RequestEvent extends AbstractEvent
{
    public const CLIENT_AUTHENTICATION_FAILED = 'client.authentication.failed';
    public const USER_AUTHENTICATION_FAILED = 'user.authentication.failed';
    public const REFRESH_TOKEN_CLIENT_FAILED = 'refresh_token.client.failed';

    public const REFRESH_TOKEN_ISSUED = 'refresh_token.issued';
    public const ACCESS_TOKEN_ISSUED = 'access_token.issued';

    public function __construct(string $name, private ServerRequestInterface $request)
    {
        parent::__construct($name);
    }

    /**
     * @codeCoverageIgnore
     */
    public function getRequest(): ServerRequestInterface
    {
        return $this->request;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * @author      Alex Bilbie <[email protected]>
 * @copyright   Copyright (c) Alex Bilbie
 * @license     http://mit-license.org/
 *
 * @link        https://github.com/thephpleague/oauth2-server
 */

declare(strict_types=1);

namespace League\OAuth2\Server;

use League\OAuth2\Server\EventEmitting\AbstractEvent;
use Psr\Http\Message\ServerRequestInterface;

class RequestEvent extends AbstractEvent
{
    public const CLIENT_AUTHENTICATION_FAILED = 'client.authentication.failed';
    public const USER_AUTHENTICATION_FAILED = 'user.authentication.failed';
    public const REFRESH_TOKEN_CLIENT_FAILED = 'refresh_token.client.failed';

    public const REFRESH_TOKEN_ISSUED = 'refresh_token.issued';
    public const ACCESS_TOKEN_ISSUED = 'access_token.issued';

    public function __construct(string $name, private ServerRequestInterface $request)
    {
        parent::__construct($name);
    }

    /**
     * @codeCoverageIgnore
     */
    public function getRequest(): ServerRequestInterface
    {
        return $this->request;
    }
}

Function Calls

None

Variables

None

Stats

MD5 7f0cd467c07731d5f119bde2470d5069
Eval Count 0
Decode Time 93 ms