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 PowerComponents\LivewirePowerGrid\Commands; use Illuminate\Console\Comma..
Decoded Output download
<?php
namespace PowerComponents\LivewirePowerGrid\Commands;
use Illuminate\Console\Command;
use function Laravel\Prompts\{note,select};
use PowerComponents\LivewirePowerGrid\Actions\{CheckDependencyFlatPick, CheckDependencyOpenspout};
class CheckDependenciesCommand extends Command
{
/** @var string */
protected $signature = 'powergrid:check-dependencies';
/** @var string */
protected $description = 'Check PowerGrid dependencies.';
public function handle(): int
{
$this->check([
CheckDependencyFlatPick::handle(),
CheckDependencyOpenspout::handle(),
]);
return self::SUCCESS;
}
/**
* @param array<int, string> $dependencies
*/
private function check(array $dependencies): void
{
foreach ($dependencies as $dependency) {
if (!empty($dependency)) {
note($dependency);
select(
label: '',
options: ['continue...'],
hint: 'press <comment>\<enter\></comment> to continue...'
);
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace PowerComponents\LivewirePowerGrid\Commands;
use Illuminate\Console\Command;
use function Laravel\Prompts\{note,select};
use PowerComponents\LivewirePowerGrid\Actions\{CheckDependencyFlatPick, CheckDependencyOpenspout};
class CheckDependenciesCommand extends Command
{
/** @var string */
protected $signature = 'powergrid:check-dependencies';
/** @var string */
protected $description = 'Check PowerGrid dependencies.';
public function handle(): int
{
$this->check([
CheckDependencyFlatPick::handle(),
CheckDependencyOpenspout::handle(),
]);
return self::SUCCESS;
}
/**
* @param array<int, string> $dependencies
*/
private function check(array $dependencies): void
{
foreach ($dependencies as $dependency) {
if (!empty($dependency)) {
note($dependency);
select(
label: '',
options: ['continue...'],
hint: 'press <comment>\<enter\></comment> to continue...'
);
}
}
}
}
Function Calls
None |
Stats
MD5 | a48efe546d6997cb0f51b26f28f582da |
Eval Count | 0 |
Decode Time | 85 ms |