-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.php-cs-fixer.dist-strict.php
41 lines (38 loc) · 1.08 KB
/
.php-cs-fixer.dist-strict.php
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
34
35
36
37
38
39
40
41
<?php
/**
* This file represents the configuration for Code Sniffing PSR-2-related
* automatic checks of coding guidelines
* Install @fabpot's great php-cs-fixer tool via
*
* $ composer global require friendsofphp/php-cs-fixer
*
* And then simply run
*
* $ php-cs-fixer fix or
* $ ~/.config/composer/vendor/bin/php-cs-fixer fix
*
* For more information read:
* http://www.php-fig.org/psr/psr-2/
* http://cs.sensiolabs.org
*/
if (PHP_SAPI !== 'cli') {
die('This script supports command line usage only. Please check your command.');
}
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'declare_strict_types' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('.build')
->exclude('Build/node_modules')
->exclude('Contrib')
->exclude('Initialisation')
->exclude('var')
->exclude('config')
->notName('ext_emconf.php')
->notName('ext_localconf.php')
->notName('ext_tables.php')
->in(__DIR__)
);