Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ nb-configuration.xml

codeclimate.json
coveralls.json
clover.xml
clover.xml
scrutinizer.xml
29 changes: 5 additions & 24 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,23 @@

use BlitzPHP\CodingStandard\Blitz;
use Nexus\CsConfig\Factory;
use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer;
use Nexus\CsConfig\FixerGenerator;
use PhpCsFixer\Finder;

$finder = Finder::create()
->files()
->in([
__DIR__ . '/src',
// __DIR__ . '/tests',
// __DIR__ . '/utils',
])
// ->exclude(['ThirdParty'])
->notName('#Foobar.php$#')
->append([
__FILE__,
__DIR__ . '/.php-cs-fixer.no-header.php',
__DIR__ . '/.php-cs-fixer.user-guide.php',
// __DIR__ . '/rector.php',
// __DIR__ . '/spark',
// __DIR__ . '/user_guide_src/renumerate.php',
]);
->in([__DIR__ . '/src'])
->append([__FILE__]);

$overrides = [];

$options = [
'cacheFile' => 'build/.php-cs-fixer.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [
NoCodeSeparatorCommentFixer::name() => true,
],
'cacheFile' => 'build/.php-cs-fixer.cache',
'finder' => $finder,
];

return Factory::create(new Blitz(), $overrides, $options)->forLibrary(
'Blitz PHP framework - Database Layer',
'Dimitri Sitchet Tomkeu',
'devcode.dst@gmail.com',
2022
2022,
);
Loading