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 /** * The class is responsible for rendering JSON templates * * PHP version 5.5 ..

Decoded Output download

<?php
/**
 * The class is responsible for rendering JSON templates
 *
 * PHP version 5.5
 *
 * @category   OpCacheGUI
 * @package    Presentation
 * @author     Pieter Hordijk <[email protected]>
 * @copyright  Copyright (c) 2014 Pieter Hordijk <https://github.com/PeeHaa>
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    1.0.0
 */
namespace OpCacheGUI\Presentation;

/**
 * The class is responsible for rendering JSON templates
 *
 * @category   OpCacheGUI
 * @package    Presentation
 * @author     Pieter Hordijk <[email protected]>
 */
class Json extends Template
{
    /**
     * Renders a template
     *
     * @param string $template The template to render
     * @param array  $data     The data to use in the template
     */
    public function render($template, array $data = [])
    {
        $this->variables = $data;

        return require $this->templateDirectory . '/' . $template;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * The class is responsible for rendering JSON templates
 *
 * PHP version 5.5
 *
 * @category   OpCacheGUI
 * @package    Presentation
 * @author     Pieter Hordijk <[email protected]>
 * @copyright  Copyright (c) 2014 Pieter Hordijk <https://github.com/PeeHaa>
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    1.0.0
 */
namespace OpCacheGUI\Presentation;

/**
 * The class is responsible for rendering JSON templates
 *
 * @category   OpCacheGUI
 * @package    Presentation
 * @author     Pieter Hordijk <[email protected]>
 */
class Json extends Template
{
    /**
     * Renders a template
     *
     * @param string $template The template to render
     * @param array  $data     The data to use in the template
     */
    public function render($template, array $data = [])
    {
        $this->variables = $data;

        return require $this->templateDirectory . '/' . $template;
    }
}

Function Calls

None

Variables

None

Stats

MD5 94e55a101dd11a3a8dbe1499effdccad
Eval Count 0
Decode Time 78 ms