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 namespace Encore\Admin\Grid\Concerns; use Encore\Admin\Grid\Tools\QuickCreate; tr..

Decoded Output download

<?php

namespace Encore\Admin\Grid\Concerns;

use Encore\Admin\Grid\Tools\QuickCreate;

trait HasQuickCreate
{
    protected $hasQuickCreate = false;

    /**
     * @var QuickCreate
     */
    protected $quickCreate;

    /**
     * @param \Closure $closure
     *
     * @return $this
     */
    public function quickCreate(\Closure $closure)
    {
        $this->quickCreate = new QuickCreate($this);

        call_user_func($closure, $this->quickCreate);

        return $this;
    }

    /**
     * Indicates grid has quick-create.
     *
     * @return bool
     */
    public function hasQuickCreate()
    {
        return !is_null($this->quickCreate);
    }

    /**
     * Render quick-create form.
     *
     * @return array|string
     */
    public function renderQuickCreate()
    {
        $columnCount = $this->visibleColumns()->count();

        return $this->quickCreate->render($columnCount);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Encore\Admin\Grid\Concerns;

use Encore\Admin\Grid\Tools\QuickCreate;

trait HasQuickCreate
{
    protected $hasQuickCreate = false;

    /**
     * @var QuickCreate
     */
    protected $quickCreate;

    /**
     * @param \Closure $closure
     *
     * @return $this
     */
    public function quickCreate(\Closure $closure)
    {
        $this->quickCreate = new QuickCreate($this);

        call_user_func($closure, $this->quickCreate);

        return $this;
    }

    /**
     * Indicates grid has quick-create.
     *
     * @return bool
     */
    public function hasQuickCreate()
    {
        return !is_null($this->quickCreate);
    }

    /**
     * Render quick-create form.
     *
     * @return array|string
     */
    public function renderQuickCreate()
    {
        $columnCount = $this->visibleColumns()->count();

        return $this->quickCreate->render($columnCount);
    }
}

Function Calls

None

Variables

None

Stats

MD5 18b0dec347ef4578c26b4cb4a2720539
Eval Count 0
Decode Time 113 ms