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 Filament\Forms\Components\Concerns; use Closure; use Illuminate\View\Com..
Decoded Output download
<?php
namespace Filament\Forms\Components\Concerns;
use Closure;
use Illuminate\View\ComponentAttributeBag;
trait HasExtraFieldWrapperAttributes
{
/**
* @var array<array<mixed> | Closure>
*/
protected array $extraFieldWrapperAttributes = [];
/**
* @param array<mixed> | Closure $attributes
*/
public function extraFieldWrapperAttributes(array | Closure $attributes, bool $merge = false): static
{
if ($merge) {
$this->extraFieldWrapperAttributes[] = $attributes;
} else {
$this->extraFieldWrapperAttributes = [$attributes];
}
return $this;
}
/**
* @return array<mixed>
*/
public function getExtraFieldWrapperAttributes(): array
{
$temporaryAttributeBag = new ComponentAttributeBag();
foreach ($this->extraFieldWrapperAttributes as $extraFieldWrapperAttributes) {
$temporaryAttributeBag = $temporaryAttributeBag->merge($this->evaluate($extraFieldWrapperAttributes));
}
return $temporaryAttributeBag->getAttributes();
}
public function getExtraFieldWrapperAttributesBag(): ComponentAttributeBag
{
return new ComponentAttributeBag($this->getExtraFieldWrapperAttributes());
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Filament\Forms\Components\Concerns;
use Closure;
use Illuminate\View\ComponentAttributeBag;
trait HasExtraFieldWrapperAttributes
{
/**
* @var array<array<mixed> | Closure>
*/
protected array $extraFieldWrapperAttributes = [];
/**
* @param array<mixed> | Closure $attributes
*/
public function extraFieldWrapperAttributes(array | Closure $attributes, bool $merge = false): static
{
if ($merge) {
$this->extraFieldWrapperAttributes[] = $attributes;
} else {
$this->extraFieldWrapperAttributes = [$attributes];
}
return $this;
}
/**
* @return array<mixed>
*/
public function getExtraFieldWrapperAttributes(): array
{
$temporaryAttributeBag = new ComponentAttributeBag();
foreach ($this->extraFieldWrapperAttributes as $extraFieldWrapperAttributes) {
$temporaryAttributeBag = $temporaryAttributeBag->merge($this->evaluate($extraFieldWrapperAttributes));
}
return $temporaryAttributeBag->getAttributes();
}
public function getExtraFieldWrapperAttributesBag(): ComponentAttributeBag
{
return new ComponentAttributeBag($this->getExtraFieldWrapperAttributes());
}
}
Function Calls
None |
Stats
MD5 | c3cc40542a6e11f8171b34bd2090778e |
Eval Count | 0 |
Decode Time | 95 ms |