Skip to content

Commit

Permalink
Merge pull request #23 from cycle/style/php-cs-fixer-config
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp authored May 23, 2024
2 parents 9ed03b2 + 3e771a8 commit 6cd3813
Show file tree
Hide file tree
Showing 18 changed files with 931 additions and 295 deletions.
4 changes: 2 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
declare(strict_types=1);

use WayOfDev\PhpCsFixer\Config\ConfigBuilder;
use WayOfDev\PhpCsFixer\Config\RuleSets\DefaultSet;
use WayOfDev\PhpCsFixer\Config\RuleSets\ExtendedPERSet;

require_once 'vendor/autoload.php';

$config = ConfigBuilder::createFromRuleSet(new DefaultSet(['static_lambda' => false]))
$config = ConfigBuilder::createFromRuleSet(new ExtendedPERSet())
->inDir(__DIR__ . '/src')
->inDir(__DIR__ . '/tests')
->addFiles([__FILE__])
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"spiral/logger": "^3.12",
"spiral/testing": "^2.7",
"vimeo/psalm": "^5.23",
"wayofdev/cs-fixer-config": "^1.2"
"wayofdev/cs-fixer-config": "^1.4"
},
"suggest": {
"spiral/cycle-bridge": "Provides integration with Spiral Framework",
Expand Down
Loading

0 comments on commit 6cd3813

Please sign in to comment.