Skip to content

Commit

Permalink
Remove redundant fixers
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 9, 2024
1 parent 3faf217 commit 3c6df6b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions config/contao.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
use Contao\EasyCodingStandard\Sniffs\ContaoFrameworkClassAliasSniff;
use Contao\EasyCodingStandard\Sniffs\SetDefinitionCommandSniff;
use Contao\EasyCodingStandard\Sniffs\UseSprintfInExceptionsSniff;
use PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\GitMergeConflictSniff;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LanguageConstructSpacingSniff;
use PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff;
use PhpCsFixer\Fixer\Alias\RandomApiMigrationFixer;
use PhpCsFixer\Fixer\ArrayNotation\NoWhitespaceBeforeCommaInArrayFixer;
use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
Expand Down Expand Up @@ -80,10 +77,8 @@
use PhpCsFixer\Fixer\Whitespace\HeredocIndentationFixer;
use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
use PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer;
use PhpCsFixerCustomFixers\Fixer\NoUselessParenthesisFixer;
use PhpCsFixerCustomFixers\Fixer\PhpdocTypesCommaSpacesFixer;
use PhpCsFixerCustomFixers\Fixer\PhpUnitAssertArgumentsOrderFixer;
use SlevomatCodingStandard\Sniffs\Classes\TraitUseSpacingSniff;
use SlevomatCodingStandard\Sniffs\Functions\UnusedInheritedVariablePassedToClosureSniff;
use SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff;
use SlevomatCodingStandard\Sniffs\Namespaces\UnusedUsesSniff;
Expand Down Expand Up @@ -123,12 +118,10 @@
ExpectsWithCallbackFixer::class,
FindByPkFixer::class,
FunctionCallWithMultilineArrayFixer::class,
GitMergeConflictSniff::class,
HeredocIndentationFixer::class,
HeredocToNowdocFixer::class,
InlinePhpdocCommentFixer::class,
IsArrayNotEmptyFixer::class,
LanguageConstructSpacingSniff::class,
MethodChainingIndentationFixer::class,
MockMethodChainingIndentationFixer::class,
MultilineCommentOpeningClosingFixer::class,
Expand All @@ -139,7 +132,6 @@
NoSuperfluousElseifFixer::class,
NoUnsetOnPropertyFixer::class,
NoUselessElseFixer::class,
NoUselessParenthesisFixer::class,
NoUselessReturnFixer::class,
NullTypeHintOnLastPositionSniff::class,
OrderedClassElementsFixer::class,
Expand Down Expand Up @@ -193,8 +185,6 @@
->withConfiguredRule(RandomApiMigrationFixer::class, ['replacements' => ['mt_rand' => 'random_int', 'rand' => 'random_int']])
->withConfiguredRule(ReferenceUsedNamesOnlySniff::class, ['searchAnnotations' => true, 'allowFullyQualifiedNameForCollidingClasses' => true, 'allowFullyQualifiedGlobalClasses' => true, 'allowFullyQualifiedGlobalFunctions' => true, 'allowFullyQualifiedGlobalConstants' => true, 'allowPartialUses' => false])
->withConfiguredRule(StringImplicitBackslashesFixer::class, ['single_quoted' => 'ignore', 'double_quoted' => 'escape', 'heredoc' => 'escape'])
->withConfiguredRule(SuperfluousWhitespaceSniff::class, ['ignoreBlankLines' => false])
->withConfiguredRule(TrailingCommaInMultilineFixer::class, ['elements' => ['arrays', 'arguments', 'match', 'parameters'], 'after_heredoc' => true])
->withConfiguredRule(TraitUseSpacingSniff::class, ['linesCountAfterLastUse' => 1, 'linesCountAfterLastUseWhenLastInClass' => 0, 'linesCountBeforeFirstUse' => 0, 'linesCountBetweenUses' => 0])
->withConfiguredRule(UnusedUsesSniff::class, ['searchAnnotations' => true])
;

0 comments on commit 3c6df6b

Please sign in to comment.