You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a configuration file `.php_cs` in the root of your project:
17
+
Create a configuration file `.php-cs-fixer.dist.php` in the root of your project:
18
18
19
19
```php
20
20
<?php
21
21
22
-
$config = new M6Web\CS\Config\Php72;
22
+
$finder = PhpCsFixer\Finder::create()
23
+
->in(
24
+
[
25
+
__DIR__.'/src',
26
+
__DIR__.'/tests',
27
+
]
28
+
);
23
29
24
-
$config->getFinder()
25
-
->in([
26
-
__DIR__.'/src'
27
-
])->exclude([
28
-
'Tests'
29
-
]);
30
+
$config = new M6Web\CS\Config\BedrockStreaming();
31
+
$config->setFinder($finder);
30
32
31
33
return $config;
32
34
```
33
35
34
36
### Git
35
37
36
-
Add `.php_cs.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
38
+
Add `.php-cs-fixer.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
37
39
38
40
```
39
41
vendor/
40
-
.php_cs.cache
42
+
.php-cs-fixer.cache
41
43
```
42
44
43
45
### Makefile
@@ -81,7 +83,7 @@ $ make cs-ci
81
83
82
84
## Credits
83
85
84
-
Developed by [M6Web](http://tech.m6web.fr/), inspired by [refinery29/php-cs-fixer-config](https://github.com/refinery29/php-cs-fixer-config).
86
+
Developed by [Bedrock Streaming](https://tech.bedrockstreaming.com), inspired by [refinery29/php-cs-fixer-config](https://github.com/refinery29/php-cs-fixer-config).
0 commit comments