Yaffs site version 1.1
[yaffs-website] / vendor / psy / psysh / .php_cs
1 <?php
2
3 use Symfony\CS\Config\Config;
4 use Symfony\CS\FixerInterface;
5 use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
6
7 $header = <<<EOF
8 This file is part of Psy Shell.
9
10 (c) 2012-2017 Justin Hileman
11
12 For the full copyright and license information, please view the LICENSE
13 file that was distributed with this source code.
14 EOF;
15
16 HeaderCommentFixer::setHeader($header);
17
18 $config = Config::create()
19     // use symfony level and extra fixers:
20     ->level(FixerInterface::SYMFONY_LEVEL)
21     ->fixers(array(
22         'align_double_arrow',
23         'concat_with_spaces',
24         'header_comment',
25         'long_array_syntax',
26         'ordered_use',
27         'strict',
28         '-concat_without_spaces',
29         '-method_argument_space',
30         '-pre_increment',
31         '-unalign_double_arrow',
32         '-unalign_equals',
33         '-no_empty_comment', // stop removing slashes in the middle of multi-line comments
34     ))
35     ->setUsingLinter(false);
36
37 $finder = $config->getFinder()
38     ->in(__DIR__)
39     ->name('.php_cs')
40     ->name('build-manual')
41     ->name('build-phar')
42     ->exclude('build-vendor');
43
44 return $config;