forked from markuspoerschke/iCal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
28 lines (22 loc) · 725 Bytes
/
Copy path.php_cs
File metadata and controls
28 lines (22 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
$year = date('Y');
$headerComment = <<<EOF
This file is part of the eluceo/iCal package.
(c) {$year} Markus Poerschke <markus@poerschke.nrw>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->in(__DIR__ . '/examples');
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'ordered_imports' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $headerComment],
'yoda_style' => false,
])
->setFinder($finder);