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 use PowerComponents\LivewirePowerGrid\Button; use PowerComponents\LivewirePowerGrid..
Decoded Output download
<?php
use PowerComponents\LivewirePowerGrid\Button;
use PowerComponents\LivewirePowerGrid\Tests\Concerns\Components\DishTableBase;
use function PowerComponents\LivewirePowerGrid\Tests\Plugins\livewire;
$component = new class () extends DishTableBase {
public function actions($row): array
{
return [
Button::add('id')
->id('open-modal')
->slot('id')
->class('text-center'),
];
}
};
dataset('id', [
'tailwind' => [$component::class, (object) ['theme' => 'tailwind', 'join' => false]],
'bootstrap' => [$component::class, (object) ['theme' => 'bootstrap', 'join' => false]],
'tailwind join' => [$component::class, (object) ['theme' => 'tailwind', 'join' => true]],
'bootstrap join' => [$component::class, (object) ['theme' => 'bootstrap', 'join' => true]],
]);
it('properly displays "id" on button', function (string $component, object $params) {
livewire($component, [
'join' => $params->join,
])
->call($params->theme)
->set('search', 'Pastel de Nata')
->assertSeeHtml('id="open-modal-1"')
->assertDontSeeHtml('id="open-modal-2"')
->set('search', 'Peixada da chef Nbia')
->assertSeeHtml('id="open-modal-2"')
->assertDontSeeHtml('id="open-modal-1"');
})->with('id')->group('action');
?>
Did this file decode correctly?
Original Code
<?php
use PowerComponents\LivewirePowerGrid\Button;
use PowerComponents\LivewirePowerGrid\Tests\Concerns\Components\DishTableBase;
use function PowerComponents\LivewirePowerGrid\Tests\Plugins\livewire;
$component = new class () extends DishTableBase {
public function actions($row): array
{
return [
Button::add('id')
->id('open-modal')
->slot('id')
->class('text-center'),
];
}
};
dataset('id', [
'tailwind' => [$component::class, (object) ['theme' => 'tailwind', 'join' => false]],
'bootstrap' => [$component::class, (object) ['theme' => 'bootstrap', 'join' => false]],
'tailwind join' => [$component::class, (object) ['theme' => 'tailwind', 'join' => true]],
'bootstrap join' => [$component::class, (object) ['theme' => 'bootstrap', 'join' => true]],
]);
it('properly displays "id" on button', function (string $component, object $params) {
livewire($component, [
'join' => $params->join,
])
->call($params->theme)
->set('search', 'Pastel de Nata')
->assertSeeHtml('id="open-modal-1"')
->assertDontSeeHtml('id="open-modal-2"')
->set('search', 'Peixada da chef Nbia')
->assertSeeHtml('id="open-modal-2"')
->assertDontSeeHtml('id="open-modal-1"');
})->with('id')->group('action');
Function Calls
None |
Stats
MD5 | 7ffc6044d7b21dba2eeaf777b6b31467 |
Eval Count | 0 |
Decode Time | 91 ms |