Skip to content

Commit 40b40a0

Browse files
committed
fix: Update local configuration of friendsofphp/php-cs-fixer package
1 parent 05b5b62 commit 40b40a0

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

.php-cs-fixer.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
use Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory;
10+
11+
$configFactory = new InternalConfigFactory();
12+
$configFactory->withRules([
13+
'declare_strict_types' => false,
14+
]);
15+
16+
return $configFactory
17+
->buildConfig()
18+
->setFinder(
19+
PhpCsFixer\Finder::create()
20+
->in([
21+
__DIR__ . '/src',
22+
__DIR__ . '/tests',
23+
])
24+
->files()->name('*.php')
25+
);

.php_cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
}
6161
},
6262
"scripts": {
63-
"fix-cs": "php-cs-fixer fix -v --show-progress=estimating"
63+
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots"
6464
}
6565
}

0 commit comments

Comments
 (0)