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\MarkdownBundle\DependencyInjection;

use Sculpin\Bundle\MarkdownBundle\PhpMarkdownExtraParser;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 * @author Beau Simensen <[email protected]>
 */
class Configuration implements ConfigurationInterface
{
    /**
    * {@inheritdoc}
    */
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder('sculpin_markdown');

        $rootNode = $treeBuilder->getRootNode();

        $rootNode
            ->children()
                ->scalarNode('parser_class')
                    ->info('The markdown parser to use - must be a class without any constructor arguments')
                    ->defaultValue(PhpMarkdownExtraParser::class)
                ->end()
                ->arrayNode('extensions')
                    ->info('File name extensions to handle as markdown')
                    ->defaultValue(['md', 'mdown', 'mkdn', 'markdown'])
                    ->prototype('scalar')->end()
                ->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\MarkdownBundle\DependencyInjection;

use Sculpin\Bundle\MarkdownBundle\PhpMarkdownExtraParser;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
 * @author Beau Simensen <[email protected]>
 */
class Configuration implements ConfigurationInterface
{
    /**
    * {@inheritdoc}
    */
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder('sculpin_markdown');

        $rootNode = $treeBuilder->getRootNode();

        $rootNode
            ->children()
                ->scalarNode('parser_class')
                    ->info('The markdown parser to use - must be a class without any constructor arguments')
                    ->defaultValue(PhpMarkdownExtraParser::class)
                ->end()
                ->arrayNode('extensions')
                    ->info('File name extensions to handle as markdown')
                    ->defaultValue(['md', 'mdown', 'mkdn', 'markdown'])
                    ->prototype('scalar')->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
}

Function Calls

None

Variables

None

Stats

MD5 1b3909a46e5fd77f3a066aba305482a9
Eval Count 0
Decode Time 84 ms