Skip to content

Commit

Permalink
Remove excess spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliot-Tm committed Aug 30, 2024
1 parent f1f49de commit 3b4df30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ So, it's some work around till baseline will be implemented in the PHP CS Fixer.
```shell
composer require --dev aeliot/php-cs-fixer-baseline
```
2. Extract `Finder` from the config of PHP CS Fixer to the separate file.
2. Extract `Finder` from the config of PHP CS Fixer to the separate file.
It expects `.php-cs-fixer-finder.php` at the root of the project.
3. Add filtering of files detected by Finder
```php
$finder->filter((new FilterFactory())->createFilter(__DIR__ . '/.php-cs-fixer-baseline.json', $config));
```
4. Generate baseline. Just call script without options when all config files uses default names.
```shell
vendor/bin/pcsf-baseline
vendor/bin/pcsf-baseline
```
See options of it below.

Expand All @@ -39,5 +39,5 @@ You can see how it is configured in this project.
| c | config | Name of config file | .php-cs-fixer.dist.php |
| f | finder | Name of file with definition of Finder | .php-cs-fixer-finder.php |

Path to files can be absolute or related or omitted at all. It the last case it is expected that files
Path to files can be absolute or related or omitted at all. It the last case it is expected that files
in the root directory of project.

0 comments on commit 3b4df30

Please sign in to comment.