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); /** * @license Apache 2.0 */ namespace OpenApi\Tools\CS..

Decoded Output download

<?php declare(strict_types=1);

/**
 * @license Apache 2.0
 */

namespace OpenApi\Tools\CSFixer;

use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
use PhpCsFixer\Tokenizer\Tokens;

class ScopedDeclareStrictTypesFixer extends AbstractFixer
{
    use ScopedTrait;

    protected DeclareStrictTypesFixer $declareStrictTypesFixer;

    public function __construct()
    {
        $this->declareStrictTypesFixer = new DeclareStrictTypesFixer();
    }

    public function fix(\SplFileInfo $file, Tokens $tokens): void
    {
        $this->declareStrictTypesFixer->fix($file, $tokens);
    }

    public function getDefinition(): FixerDefinitionInterface
    {
        return $this->declareStrictTypesFixer->getDefinition();
    }

    public function getName(): string
    {
        return 'OpenApi/declare_strict_types';
    }

    public function getPriority(): int
    {
        return 5;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php declare(strict_types=1);

/**
 * @license Apache 2.0
 */

namespace OpenApi\Tools\CSFixer;

use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use PhpCsFixer\FixerDefinition\FixerDefinitionInterface;
use PhpCsFixer\Tokenizer\Tokens;

class ScopedDeclareStrictTypesFixer extends AbstractFixer
{
    use ScopedTrait;

    protected DeclareStrictTypesFixer $declareStrictTypesFixer;

    public function __construct()
    {
        $this->declareStrictTypesFixer = new DeclareStrictTypesFixer();
    }

    public function fix(\SplFileInfo $file, Tokens $tokens): void
    {
        $this->declareStrictTypesFixer->fix($file, $tokens);
    }

    public function getDefinition(): FixerDefinitionInterface
    {
        return $this->declareStrictTypesFixer->getDefinition();
    }

    public function getName(): string
    {
        return 'OpenApi/declare_strict_types';
    }

    public function getPriority(): int
    {
        return 5;
    }
}

Function Calls

None

Variables

None

Stats

MD5 4b217ef9d839d37486f112559b05b40a
Eval Count 0
Decode Time 78 ms