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 /** * @package Grav\Common\User * * @copyright Copyright (c) 2015 - 2024 Tri..

Decoded Output download

<?php

/**
 * @package    Grav\Common\User
 *
 * @copyright  Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */

namespace Grav\Common\User\Interfaces;

/**
 * Interface AuthorizeInterface
 * @package Grav\Common\User\Interfaces
 */
interface AuthorizeInterface
{
    /**
     * Checks user authorization to the action.
     *
     * @param  string $action
     * @param  string|null $scope
     * @return bool|null
     */
    public function authorize(string $action, string $scope = null): ?bool;
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * @package    Grav\Common\User
 *
 * @copyright  Copyright (c) 2015 - 2024 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */

namespace Grav\Common\User\Interfaces;

/**
 * Interface AuthorizeInterface
 * @package Grav\Common\User\Interfaces
 */
interface AuthorizeInterface
{
    /**
     * Checks user authorization to the action.
     *
     * @param  string $action
     * @param  string|null $scope
     * @return bool|null
     */
    public function authorize(string $action, string $scope = null): ?bool;
}

Function Calls

None

Variables

None

Stats

MD5 698b3bca8b7af5e120da92bbbc7a6424
Eval Count 0
Decode Time 78 ms