My own custom PHP CS Fixer config
$ composer require --dev coisa/php-cs-fixer
Create a .php-cs-fixer.dist.php
file with the following code:
<?php
return CoiSA\PhpCsFixer\PhpCsFixer::create(array(
__FILE__,
__DIR__,
'!ignore_path_using_exclamation_sign',
));
Setting a custom file header:
<?php
$paths = array(
__FILE__,
__DIR__,
);
$header = \file_get_contents(__DIR__ . '/.docheader');
return CoiSA\PhpCsFixer\PhpCsFixer::create($paths, $header);