We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 076bd9c commit 45f1514Copy full SHA for 45f1514
3 files changed
.php-cs-fixer.php
@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+// Invoke the config easily with `php-cs-fixer fix`
4
5
+$finder = \PhpCsFixer\Finder::create()
6
+ ->files()
7
+ ->name('*.php')
8
+ ->in(__DIR__ . '/src')
9
+ ->in(__DIR__ . '/tests');
10
11
+$config = new PhpCsFixer\Config();
12
13
+return $config
14
+ ->setUsingCache(false)
15
+ ->setRules([
16
+ '@Symfony' => true,
17
+ '@Symfony:risky' => true,
18
+ 'yoda_style' => false,
19
+ 'single_line_throw' => false,
20
+ ])
21
+ ->setRiskyAllowed(true)
22
+ ->setFinder($finder);
.php_cs
tools/.php-cs-fixer/composer.json
@@ -1,5 +1,5 @@
{
"require": {
- "friendsofphp/php-cs-fixer": "2.*"
+ "friendsofphp/php-cs-fixer": "3.*"
}
0 commit comments