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\Panel\Concerns; use Closure; trait HasColors { /** * ..
Decoded Output download
<?php
namespace Filament\Panel\Concerns;
use Closure;
trait HasColors
{
/**
* @var array<array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string> | Closure>
*/
protected array $colors = [];
/**
* @param array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string> | Closure $colors
*/
public function colors(array | Closure $colors): static
{
$this->colors[] = $colors;
return $this;
}
/**
* @return array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string>
*/
public function getColors(): array
{
$colors = [];
foreach ($this->colors as $set) {
$set = $this->evaluate($set);
foreach ($set as $name => $color) {
$colors[$name] = $color;
}
}
return $colors;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Filament\Panel\Concerns;
use Closure;
trait HasColors
{
/**
* @var array<array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string> | Closure>
*/
protected array $colors = [];
/**
* @param array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string> | Closure $colors
*/
public function colors(array | Closure $colors): static
{
$this->colors[] = $colors;
return $this;
}
/**
* @return array<string, array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | string>
*/
public function getColors(): array
{
$colors = [];
foreach ($this->colors as $set) {
$set = $this->evaluate($set);
foreach ($set as $name => $color) {
$colors[$name] = $color;
}
}
return $colors;
}
}
Function Calls
None |
Stats
MD5 | e8a79b5e826087343c7352dbbe1af682 |
Eval Count | 0 |
Decode Time | 92 ms |