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 Illuminate\Foundation\Console; use Illuminate\Console\Command; use Symfo..

Decoded Output download

<?php

namespace Illuminate\Foundation\Console;

use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'optimize:clear')]
class OptimizeClearCommand extends Command
{
    /**
     * The console command name.
     *
     * @var string
     */
    protected $name = 'optimize:clear';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Remove the cached bootstrap files';

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $this->components->info('Clearing cached bootstrap files.');

        collect([
            'cache' => fn () => $this->callSilent('cache:clear') == 0,
            'compiled' => fn () => $this->callSilent('clear-compiled') == 0,
            'config' => fn () => $this->callSilent('config:clear') == 0,
            'events' => fn () => $this->callSilent('event:clear') == 0,
            'routes' => fn () => $this->callSilent('route:clear') == 0,
            'views' => fn () => $this->callSilent('view:clear') == 0,
        ])->each(fn ($task, $description) => $this->components->task($description, $task));

        $this->newLine();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Illuminate\Foundation\Console;

use Illuminate\Console\Command;
use Symfony\Component\Console\Attribute\AsCommand;

#[AsCommand(name: 'optimize:clear')]
class OptimizeClearCommand extends Command
{
    /**
     * The console command name.
     *
     * @var string
     */
    protected $name = 'optimize:clear';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Remove the cached bootstrap files';

    /**
     * Execute the console command.
     *
     * @return void
     */
    public function handle()
    {
        $this->components->info('Clearing cached bootstrap files.');

        collect([
            'cache' => fn () => $this->callSilent('cache:clear') == 0,
            'compiled' => fn () => $this->callSilent('clear-compiled') == 0,
            'config' => fn () => $this->callSilent('config:clear') == 0,
            'events' => fn () => $this->callSilent('event:clear') == 0,
            'routes' => fn () => $this->callSilent('route:clear') == 0,
            'views' => fn () => $this->callSilent('view:clear') == 0,
        ])->each(fn ($task, $description) => $this->components->task($description, $task));

        $this->newLine();
    }
}

Function Calls

None

Variables

None

Stats

MD5 62a5135817eb8a4502c62f3cdce547fe
Eval Count 0
Decode Time 101 ms