Mercurial > hg > isophonics-drupal-site
annotate vendor/psy/psysh/.php_cs @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 5fb285c0d0e3 |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@12 | 3 $finder = PhpCsFixer\Finder::create() |
Chris@12 | 4 ->in(__DIR__) |
Chris@12 | 5 ->name('.php_cs') |
Chris@12 | 6 ->name('build-manual') |
Chris@12 | 7 ->name('build-phar') |
Chris@12 | 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@13 | 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@12 | 19 return PhpCsFixer\Config::create() |
Chris@12 | 20 ->setRules(array( |
Chris@12 | 21 '@Symfony' => true, |
Chris@13 | 22 'array_syntax' => array('syntax' => 'short'), |
Chris@12 | 23 'binary_operator_spaces' => false, |
Chris@12 | 24 'concat_space' => array('spacing' => 'one'), |
Chris@12 | 25 'header_comment' => array('header' => $header), |
Chris@12 | 26 'increment_style' => array('style' => 'post'), |
Chris@12 | 27 'method_argument_space' => array('keep_multiple_spaces_after_comma' => true), |
Chris@12 | 28 'ordered_imports' => true, |
Chris@12 | 29 'pre_increment' => false, |
Chris@12 | 30 'yoda_style' => false, |
Chris@0 | 31 )) |
Chris@12 | 32 ->setFinder($finder); |