File: .php-cs-fixer.dist.php

package info (click to toggle)
postfixadmin 4.0.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,888 kB
  • sloc: php: 12,256; perl: 1,156; sh: 717; python: 142; xml: 63; sql: 3; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

$finder = PhpCsFixer\Finder::create()
    ->exclude('lib')
    ->exclude('vendor')
    ->exclude('templates')
    ->exclude('templates_c')
    ->exclude('debian')
    ->files()->notName('config.inc.php')->notName('config.local.php')
    ->in(__DIR__);

$config = new PhpCsFixer\Config();

return $config
    ->setFinder($finder)
    ->setRules(array(
        '@PSR12' => true,
        'method_argument_space' => false,           # don't break formatting in initStruct()
        'no_spaces_inside_parenthesis' => false,    # don't break formatting in initStruct()
    ));

/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4 ft=php: */