annotate vendor/psy/psysh/.php_cs @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author |
Chris Cannam |
date |
Thu, 28 Feb 2019 13:11:55 +0000 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 <?php
|
Chris@0
|
2
|
Chris@0
|
3 $finder = PhpCsFixer\Finder::create()
|
Chris@0
|
4 ->in(__DIR__)
|
Chris@0
|
5 ->name('.php_cs')
|
Chris@0
|
6 ->name('build-manual')
|
Chris@0
|
7 ->name('build-phar')
|
Chris@0
|
8 ->exclude('build-vendor');
|
Chris@0
|
9
|
Chris@0
|
10 $header = <<<EOF
|
Chris@0
|
11 This file is part of Psy Shell.
|
Chris@0
|
12
|
Chris@0
|
13 (c) 2012-2018 Justin Hileman
|
Chris@0
|
14
|
Chris@0
|
15 For the full copyright and license information, please view the LICENSE
|
Chris@0
|
16 file that was distributed with this source code.
|
Chris@0
|
17 EOF;
|
Chris@0
|
18
|
Chris@0
|
19 return PhpCsFixer\Config::create()
|
Chris@0
|
20 ->setRules(array(
|
Chris@0
|
21 '@Symfony' => true,
|
Chris@0
|
22 'array_syntax' => array('syntax' => 'short'),
|
Chris@0
|
23 'binary_operator_spaces' => false,
|
Chris@0
|
24 'concat_space' => array('spacing' => 'one'),
|
Chris@0
|
25 'header_comment' => array('header' => $header),
|
Chris@0
|
26 'increment_style' => array('style' => 'post'),
|
Chris@0
|
27 'method_argument_space' => array('keep_multiple_spaces_after_comma' => true),
|
Chris@0
|
28 'ordered_imports' => true,
|
Chris@0
|
29 'pre_increment' => false,
|
Chris@0
|
30 'yoda_style' => false,
|
Chris@0
|
31 ))
|
Chris@0
|
32 ->setFinder($finder);
|