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 declare(strict_types=1); /* * This file is a part of Sculpin. * * (c) Dragonfly..
Decoded Output download
<?php
declare(strict_types=1);
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author Beau Simensen <[email protected]>
*/
final class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('sculpin');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('source_dir')->defaultValue('%sculpin.project_dir%/source')->end()
->scalarNode('output_dir')->defaultValue('%sculpin.project_dir%/output_%kernel.environment%')->end()
->arrayNode('exclude')
->prototype('scalar')->end()
->end()
->arrayNode('ignore')
->prototype('scalar')->end()
->end()
->arrayNode('raw')
->prototype('scalar')->end()
->end()
->scalarNode('permalink')->defaultValue('pretty')->end()
->end();
return $treeBuilder;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/*
* This file is a part of Sculpin.
*
* (c) Dragonfly Development Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sculpin\Bundle\SculpinBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* @author Beau Simensen <[email protected]>
*/
final class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('sculpin');
$rootNode = $treeBuilder->getRootNode();
$rootNode
->children()
->scalarNode('source_dir')->defaultValue('%sculpin.project_dir%/source')->end()
->scalarNode('output_dir')->defaultValue('%sculpin.project_dir%/output_%kernel.environment%')->end()
->arrayNode('exclude')
->prototype('scalar')->end()
->end()
->arrayNode('ignore')
->prototype('scalar')->end()
->end()
->arrayNode('raw')
->prototype('scalar')->end()
->end()
->scalarNode('permalink')->defaultValue('pretty')->end()
->end();
return $treeBuilder;
}
}
Function Calls
None |
Stats
MD5 | 8cc86e1a49c1cb2ca1641d00a4e4e47c |
Eval Count | 0 |
Decode Time | 90 ms |