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 /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests\Fixtures;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* @author Parda Jzsef <[email protected]>
*/
class ChoiceSubType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults(['expanded' => true]);
$resolver->setNormalizer('choices', fn () => [
'attr1' => 'Attribute 1',
'attr2' => 'Attribute 2',
]);
}
public function getParent(): ?string
{
return ChoiceType::class;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests\Fixtures;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* @author Parda Jzsef <[email protected]>
*/
class ChoiceSubType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults(['expanded' => true]);
$resolver->setNormalizer('choices', fn () => [
'attr1' => 'Attribute 1',
'attr2' => 'Attribute 2',
]);
}
public function getParent(): ?string
{
return ChoiceType::class;
}
}
Function Calls
None |
Stats
MD5 | 1c1baf041bb22ef976c2c00c7a4b16ff |
Eval Count | 0 |
Decode Time | 107 ms |