.php_cs 596 Bytes
Newer Older
Markus Poerschke's avatar
Markus Poerschke committed
1 2
<?php

3
$headerComment = <<<EOF
4 5 6 7 8 9
This file is part of the eluceo/iCal package.

(c) Markus Poerschke <markus@eluceo.de>

This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
10
EOF;
11

12
$finder = PhpCsFixer\Finder::create()->in(__DIR__ . '/src');
Markus Poerschke's avatar
Markus Poerschke committed
13

14 15 16 17 18 19 20 21 22
return PhpCsFixer\Config::create()
    ->setRules([
        '@Symfony' => true,
        'ordered_imports' => true,
        'concat_space' => ['spacing' => 'one'],
        'array_syntax' => ['syntax' => 'short'],
        'header_comment' => ['header' => $headerComment]
    ])
    ->setFinder($finder)
Markus Poerschke's avatar
Markus Poerschke committed
23
;