Skip to content

Commit

Permalink
ecs: remove legacy condition/method-calls (SW 6.4.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Sep 13, 2023
1 parent ddad054 commit 5efa671
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?php declare(strict_types=1);

use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff;
use PhpCsFixer\Fixer\Basic\PsrAutoloadingFixer;
use PhpCsFixer\Fixer\ClassNotation\ProtectedToPrivateFixer;
use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSpaceFixer;
use PhpCsFixer\Fixer\Operator\NotOperatorWithSuccessorSpaceFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function (ECSConfig $ecsConfig): void {
Expand All @@ -31,11 +29,10 @@
ProtectedToPrivateFixer::class,
NotOperatorWithSpaceFixer::class,
NotOperatorWithSuccessorSpaceFixer::class,
AssignmentInConditionSniff::class
]);

$parameters = $ecsConfig->parameters();

$parameters->set(Option::CACHE_DIRECTORY, __DIR__ . '/var/cache/cs_fixer');
$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']);
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests'
]);
};

0 comments on commit 5efa671

Please sign in to comment.