Skip to content

Commit

Permalink
fix: Update local configuration of friendsofphp/php-cs-fixer package
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Dec 2, 2021
1 parent 05b5b62 commit 40b40a0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
25 changes: 25 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

use Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory;

$configFactory = new InternalConfigFactory();
$configFactory->withRules([
'declare_strict_types' => false,
]);

return $configFactory
->buildConfig()
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->files()->name('*.php')
);
14 changes: 0 additions & 14 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
}
},
"scripts": {
"fix-cs": "php-cs-fixer fix -v --show-progress=estimating"
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots"
}
}

0 comments on commit 40b40a0

Please sign in to comment.