File: .php_cs

package info (click to toggle)
php-respect-validation 1.1.29-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,416 kB
  • sloc: php: 25,221; makefile: 13
file content (33 lines) | stat: -rw-r--r-- 1,087 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
23
24
25
26
27
28
29
30
31
32
33
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
    ->files()
    ->name('*.php')
    ->name('*.phpt')
    ->in('library')
    ->in('tests');

return Symfony\CS\Config\Config::create()
    ->level(\Symfony\CS\FixerInterface::PSR2_LEVEL)
    ->fixers(array(
        // All items of the @param, @throws, @return, @var, and @type phpdoc
        // tags must be aligned vertically.
        'phpdoc_params',
        // Convert double quotes to single quotes for simple strings.
        'single_quote',
        // Group and seperate @phpdocs with empty lines.
        'phpdoc_separation',
        // An empty line feed should precede a return statement.
        'return',
        // PHP arrays should use the PHP 5.4 short-syntax.
        'short_array_syntax',
        // Remove trailing whitespace at the end of blank lines.
        'whitespacy_lines',
        // Removes extra empty lines.
        'extra_empty_lines',
        // Unused use statements must be removed.
        'unused_use',
        // Ordering use statements.
        'ordered_use',
    ))
    ->finder($finder);