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; use Closure; use Filament\Support\Concerns\Ha..
Decoded Output download
<?php
namespace Filament\Forms\Components;
use Closure;
use Filament\Support\Concerns\HasExtraAlpineAttributes;
class Textarea extends Field implements Contracts\CanBeLengthConstrained
{
use Concerns\CanBeAutocompleted;
use Concerns\CanBeLengthConstrained;
use Concerns\CanBeReadOnly;
use Concerns\HasExtraInputAttributes;
use Concerns\HasPlaceholder;
use HasExtraAlpineAttributes;
/**
* @var view-string
*/
protected string $view = 'filament-forms::components.textarea';
protected int | Closure | null $cols = null;
protected int | Closure | null $rows = null;
protected bool | Closure $shouldAutosize = false;
public function autosize(bool | Closure $condition = true): static
{
$this->shouldAutosize = $condition;
return $this;
}
public function cols(int | Closure | null $cols): static
{
$this->cols = $cols;
return $this;
}
public function rows(int | Closure | null $rows): static
{
$this->rows = $rows;
return $this;
}
public function getCols(): ?int
{
return $this->evaluate($this->cols);
}
public function getRows(): ?int
{
return $this->evaluate($this->rows);
}
public function shouldAutosize(): bool
{
return (bool) $this->evaluate($this->shouldAutosize);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Filament\Forms\Components;
use Closure;
use Filament\Support\Concerns\HasExtraAlpineAttributes;
class Textarea extends Field implements Contracts\CanBeLengthConstrained
{
use Concerns\CanBeAutocompleted;
use Concerns\CanBeLengthConstrained;
use Concerns\CanBeReadOnly;
use Concerns\HasExtraInputAttributes;
use Concerns\HasPlaceholder;
use HasExtraAlpineAttributes;
/**
* @var view-string
*/
protected string $view = 'filament-forms::components.textarea';
protected int | Closure | null $cols = null;
protected int | Closure | null $rows = null;
protected bool | Closure $shouldAutosize = false;
public function autosize(bool | Closure $condition = true): static
{
$this->shouldAutosize = $condition;
return $this;
}
public function cols(int | Closure | null $cols): static
{
$this->cols = $cols;
return $this;
}
public function rows(int | Closure | null $rows): static
{
$this->rows = $rows;
return $this;
}
public function getCols(): ?int
{
return $this->evaluate($this->cols);
}
public function getRows(): ?int
{
return $this->evaluate($this->rows);
}
public function shouldAutosize(): bool
{
return (bool) $this->evaluate($this->shouldAutosize);
}
}
Function Calls
None |
Stats
MD5 | 26ae9c6d7ec1902f98dc84d01901f649 |
Eval Count | 0 |
Decode Time | 115 ms |