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); use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer; use ..
Decoded Output download
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\ArrayNotation\NoWhitespaceBeforeCommaInArrayFixer;
use PhpCsFixer\Fixer\ArrayNotation\TrimArraySpacesFixer;
use PhpCsFixer\Fixer\ArrayNotation\WhitespaceAfterCommaInArrayFixer;
use PhpCsFixer\Fixer\Basic\NoTrailingCommaInSinglelineFixer;
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayListItemNewlineFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayOpenerAndCloserNewlineFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\StandaloneLineInMultilineArrayFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withRules([
NoWhitespaceBeforeCommaInArrayFixer::class,
ArrayOpenerAndCloserNewlineFixer::class,
ArrayIndentationFixer::class,
TrimArraySpacesFixer::class,
WhitespaceAfterCommaInArrayFixer::class,
ArrayListItemNewlineFixer::class,
StandaloneLineInMultilineArrayFixer::class,
])
// commas
->withConfiguredRule(NoTrailingCommaInSinglelineFixer::class, [
'elements' => ['arguments', 'array_destructuring', 'array', 'group_import'],
])
->withConfiguredRule(TrailingCommaInMultilineFixer::class, [
'elements' => [TrailingCommaInMultilineFixer::ELEMENTS_ARRAYS],
])
->withConfiguredRule(ArraySyntaxFixer::class, [
'syntax' => 'short',
]);
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
use PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer;
use PhpCsFixer\Fixer\ArrayNotation\NoWhitespaceBeforeCommaInArrayFixer;
use PhpCsFixer\Fixer\ArrayNotation\TrimArraySpacesFixer;
use PhpCsFixer\Fixer\ArrayNotation\WhitespaceAfterCommaInArrayFixer;
use PhpCsFixer\Fixer\Basic\NoTrailingCommaInSinglelineFixer;
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayListItemNewlineFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayOpenerAndCloserNewlineFixer;
use Symplify\CodingStandard\Fixer\ArrayNotation\StandaloneLineInMultilineArrayFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return ECSConfig::configure()
->withRules([
NoWhitespaceBeforeCommaInArrayFixer::class,
ArrayOpenerAndCloserNewlineFixer::class,
ArrayIndentationFixer::class,
TrimArraySpacesFixer::class,
WhitespaceAfterCommaInArrayFixer::class,
ArrayListItemNewlineFixer::class,
StandaloneLineInMultilineArrayFixer::class,
])
// commas
->withConfiguredRule(NoTrailingCommaInSinglelineFixer::class, [
'elements' => ['arguments', 'array_destructuring', 'array', 'group_import'],
])
->withConfiguredRule(TrailingCommaInMultilineFixer::class, [
'elements' => [TrailingCommaInMultilineFixer::ELEMENTS_ARRAYS],
])
->withConfiguredRule(ArraySyntaxFixer::class, [
'syntax' => 'short',
]);
Function Calls
None |
Stats
MD5 | 82588dbe8de6613e83d2014d6e681896 |
Eval Count | 0 |
Decode Time | 105 ms |