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 App\Abstracts\Listeners; use App\Utilities\Versions; abstract class Upd..

Decoded Output download

<?php

namespace App\Abstracts\Listeners;

use App\Utilities\Versions;

abstract class Update
{
    const ALIAS = '';

    const VERSION = '';

    /**
     * Check the fired update based on alias and version.
     *
     * @param  $event
     * @return boolean
     */
    public function skipThisUpdate($event)
    {
        // Apply only to the specified alias
        if ($event->alias != static::ALIAS) {
            return true;
        }

        return ! Versions::shouldUpdate(static::VERSION, $event->old, $event->new);
    }

    /**
     * @deprecated since 2.0
     */
    public function check($event)
    {
        return !$this->skipThisUpdate($event);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Abstracts\Listeners;

use App\Utilities\Versions;

abstract class Update
{
    const ALIAS = '';

    const VERSION = '';

    /**
     * Check the fired update based on alias and version.
     *
     * @param  $event
     * @return boolean
     */
    public function skipThisUpdate($event)
    {
        // Apply only to the specified alias
        if ($event->alias != static::ALIAS) {
            return true;
        }

        return ! Versions::shouldUpdate(static::VERSION, $event->old, $event->new);
    }

    /**
     * @deprecated since 2.0
     */
    public function check($event)
    {
        return !$this->skipThisUpdate($event);
    }
}

Function Calls

None

Variables

None

Stats

MD5 6ac0c3d35b3ddfd2f78311dab04b39ce
Eval Count 0
Decode Time 109 ms