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 declare(strict_types=1); namespace App\Models; use Illuminate\Database\Query\Buil..

Decoded Output download

<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Query\Builder;

/**
 * @property int    $id       'ID'
 * @property string $user_id  ''
 * @property string $ip       'IP'
 * @property string $message  ''
 * @property int    $level    ''
 * @property string $context  ''
 * @property string $channel  ''
 * @property int    $datetime ''
 *
 * @mixin Builder
 */
final class SysLog extends Model
{
    protected $connection = 'default';
    protected $table = 'syslog';

    public function level(): string
    {
        return match ($this->level) {
            200 => 'INFO',
            250 => 'NOTICE',
            300 => 'WARNING',
            400 => 'ERROR',
            500 => 'CRITICAL',
            550 => 'ALERT',
            600 => 'EMERGENCY',
            999 => 'KABOOM',
            default => 'DEBUG',
        };
    }

    public function channel(): string
    {
        return match ($this->channel) {
            'cron' => '',
            'sub' => '',
            'auth' => '',
            'user' => '',
            'admin' => '',
            default => '',
        };
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Query\Builder;

/**
 * @property int    $id       'ID'
 * @property string $user_id  ''
 * @property string $ip       'IP'
 * @property string $message  ''
 * @property int    $level    ''
 * @property string $context  ''
 * @property string $channel  ''
 * @property int    $datetime ''
 *
 * @mixin Builder
 */
final class SysLog extends Model
{
    protected $connection = 'default';
    protected $table = 'syslog';

    public function level(): string
    {
        return match ($this->level) {
            200 => 'INFO',
            250 => 'NOTICE',
            300 => 'WARNING',
            400 => 'ERROR',
            500 => 'CRITICAL',
            550 => 'ALERT',
            600 => 'EMERGENCY',
            999 => 'KABOOM',
            default => 'DEBUG',
        };
    }

    public function channel(): string
    {
        return match ($this->channel) {
            'cron' => '',
            'sub' => '',
            'auth' => '',
            'user' => '',
            'admin' => '',
            default => '',
        };
    }
}

Function Calls

None

Variables

None

Stats

MD5 48d743ca62495249bcf9cde4567a55ca
Eval Count 0
Decode Time 125 ms