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 /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * F..

Decoded Output download

<?php
/**
 * This file is part of the Cloudinary PHP package.
 *
 * (c) Cloudinary
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cloudinary\Samples;

/**
 * Class BaseTab
 */
abstract class BaseTab
{
    public $title;
    public $text;
    public $isFirst = false;

    /**
     * SampleTab constructor.
     * @param string $title
     * @param string $text
     */
    public function __construct($title = 'title', $text = 'text')
    {
        $this->title = $title;
        $this->text  = $text;
    }

    public function getTabPill()
    {
        $class = 'url-tab nav-link';
        if ($this->isFirst) {
            $class .= ' active';
        }
        return '
            <li class="nav-item">
                <a
                 class="' . $class . '"
                 role="tab"
                 aria-controls="' . $this->title . '"
                 aria-selected="false">' .
            strtoupper($this->title) .
            '</a>            
            </li>
        ';
    }

    public function getTabContent()
    {
        return '';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is part of the Cloudinary PHP package.
 *
 * (c) Cloudinary
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cloudinary\Samples;

/**
 * Class BaseTab
 */
abstract class BaseTab
{
    public $title;
    public $text;
    public $isFirst = false;

    /**
     * SampleTab constructor.
     * @param string $title
     * @param string $text
     */
    public function __construct($title = 'title', $text = 'text')
    {
        $this->title = $title;
        $this->text  = $text;
    }

    public function getTabPill()
    {
        $class = 'url-tab nav-link';
        if ($this->isFirst) {
            $class .= ' active';
        }
        return '
            <li class="nav-item">
                <a
                 class="' . $class . '"
                 role="tab"
                 aria-controls="' . $this->title . '"
                 aria-selected="false">' .
            strtoupper($this->title) .
            '</a>            
            </li>
        ';
    }

    public function getTabContent()
    {
        return '';
    }
}

Function Calls

None

Variables

None

Stats

MD5 2b49d8cdb5c9e2ccf8276f2e6a290bb2
Eval Count 0
Decode Time 92 ms