|
1 | 1 | <?php |
2 | 2 |
|
3 | | -require_once __DIR__ . '/vendor/sllh/php-cs-fixer-styleci-bridge/autoload.php'; |
| 3 | +$finder = PhpCsFixer\Finder::create() |
| 4 | + ->in([ |
| 5 | + 'app', |
| 6 | + 'bootstrap', |
| 7 | + 'config', |
| 8 | + 'database', |
| 9 | + 'resources/lang', |
| 10 | + 'routes', |
| 11 | + 'tests', |
| 12 | + ]); |
4 | 13 |
|
5 | | -use SLLH\StyleCIBridge\ConfigBridge; |
6 | | - |
7 | | -return ConfigBridge::create(); |
| 14 | +return PhpCsFixer\Config::create() |
| 15 | + ->setRules([ |
| 16 | + '@Symfony' => true, |
| 17 | + '@PSR1' => true, |
| 18 | + '@PSR2' => true, |
| 19 | + 'align_multiline_comment' => ['comment_type' => 'phpdocs_like'], |
| 20 | + 'array_syntax' => ['syntax' => 'short'], |
| 21 | + 'blank_line_before_return' => true, |
| 22 | + 'blank_line_before_statement' => false, |
| 23 | + 'combine_consecutive_unsets' => true, |
| 24 | + 'concat_space' => ['spacing' => 'one'], |
| 25 | + 'declare_equal_normalize' => ['space' => 'single'], |
| 26 | + 'heredoc_to_nowdoc' => true, |
| 27 | + 'linebreak_after_opening_tag' => true, |
| 28 | + 'new_with_braces' => false, |
| 29 | + 'no_alias_functions' => true, |
| 30 | + 'no_multiline_whitespace_before_semicolons' => true, |
| 31 | + 'no_unreachable_default_argument_value' => true, |
| 32 | + 'no_useless_return' => true, |
| 33 | + 'not_operator_with_successor_space' => true, |
| 34 | + 'phpdoc_separation' => false, |
| 35 | + 'protected_to_private' => false, |
| 36 | + 'psr0' => ['dir' => 'app'], |
| 37 | + 'psr4' => true, |
| 38 | + 'random_api_migration' => true, |
| 39 | + 'standardize_not_equals' => true, |
| 40 | + ])->setRiskyAllowed(true)->setFinder($finder); |
0 commit comments