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 /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..

Decoded Output download

<?php
/**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * Product information tabs
 */
namespace Magento\Catalog\Block\Product\View;

class Tabs extends \Magento\Framework\View\Element\Template
{
    /**
     * Configured tabs
     *
     * @var array
     */
    protected $_tabs = [];

    /**
     * Add tab to the container
     *
     * @param string $alias
     * @param string $title
     * @param string $block
     * @param string $template
     * @param string $header
     * @return void
     */
    public function addTab($alias, $title, $block, $template, $header = null)
    {
        if (!$title || !$block || !$template) {
            return;
        }

        $this->_tabs[] = ['alias' => $alias, 'title' => $title, 'header' => $header];

        $this->setChild($alias, $this->getLayout()->createBlock($block, $alias)->setTemplate($template));
    }

    /**
     * Return configured tabs
     *
     * @return array
     */
    public function getTabs()
    {
        return $this->_tabs;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * Product information tabs
 */
namespace Magento\Catalog\Block\Product\View;

class Tabs extends \Magento\Framework\View\Element\Template
{
    /**
     * Configured tabs
     *
     * @var array
     */
    protected $_tabs = [];

    /**
     * Add tab to the container
     *
     * @param string $alias
     * @param string $title
     * @param string $block
     * @param string $template
     * @param string $header
     * @return void
     */
    public function addTab($alias, $title, $block, $template, $header = null)
    {
        if (!$title || !$block || !$template) {
            return;
        }

        $this->_tabs[] = ['alias' => $alias, 'title' => $title, 'header' => $header];

        $this->setChild($alias, $this->getLayout()->createBlock($block, $alias)->setTemplate($template));
    }

    /**
     * Return configured tabs
     *
     * @return array
     */
    public function getTabs()
    {
        return $this->_tabs;
    }
}

Function Calls

None

Variables

None

Stats

MD5 940bc04220d7b4ba604338dc99ba4571
Eval Count 0
Decode Time 113 ms