forked from web-push-libs/web-push-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
21 lines (18 loc) · 917 Bytes
/
.php-cs-fixer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
// https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/config.rst
$config = new PhpCsFixer\Config();
$rules = [
'@PSR12' => true, // The default rule.
'@PHP81Migration' => true, // Must be the same as the min PHP version.
'blank_line_after_opening_tag' => false, // Do not waste space between <?php and declare.
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
'php_unit_test_class_requires_covers' => true,
'php_unit_method_casing' => true,
// Do not enable by default. These rules require review!! (but they are useful)
// '@PHP80Migration:risky' => true,
// '@PHPUnit100Migration:risky' => true,
];
$config->setRules($rules);
$config->setHideProgress(true);
$config->setRiskyAllowed(true);
return $config;