-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
34 lines (30 loc) · 958 Bytes
/
.php-cs-fixer.dist.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
<?php
declare(strict_types=1);
/**
* This file is part of the Opensubtitles package.
*
* Copyright (c) 2019 - 2022 Sacha Telgenhof <me at sachatelgenhof dot com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Sacha Telgenhof <me at sachatelgenhof dot com>
*/
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->files()->name('opensubtitles');
$config = new PhpCsFixer\Config();
$config->setRiskyAllowed(true)->setRules([
'@Symfony' => true,
'blank_line_after_opening_tag' => true,
'is_null' => true,
'modernize_types_casting' => true,
'self_accessor' => true,
'dir_constant' => true,
'ordered_class_elements' => true,
'declare_strict_types' => true,
'no_superfluous_elseif' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
])->setFinder($finder);
return $config;