File tree 3 files changed +38
-0
lines changed
3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1
1
/build
2
2
/vendor
3
+ .php-cs-fixer.php
4
+ .php-cs-fixer.cache
3
5
.phpunit.result.cache
4
6
composer.lock
5
7
composer.phar
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ finder = (new PhpCsFixer \Finder ())
4
+ ->in (__DIR__ );
5
+
6
+ return (new PhpCsFixer \Config ())
7
+ ->setRiskyAllowed (true )
8
+ ->setRules ([
9
+ '@Symfony ' => true ,
10
+ '@Symfony:risky ' => true ,
11
+ 'array_syntax ' => [
12
+ 'syntax ' => 'short ' ,
13
+ ],
14
+ 'concat_space ' => [
15
+ 'spacing ' => 'one ' ,
16
+ ],
17
+ 'declare_strict_types ' => true ,
18
+ 'global_namespace_import ' => [
19
+ 'import_classes ' => true ,
20
+ 'import_constants ' => null ,
21
+ 'import_functions ' => true ,
22
+ ],
23
+ 'native_constant_invocation ' => [
24
+ 'fix_built_in ' => false ,
25
+ ],
26
+ 'ordered_imports ' => [
27
+ 'imports_order ' => [
28
+ 'class ' ,
29
+ 'function ' ,
30
+ 'const ' ,
31
+ ],
32
+ ],
33
+ 'single_line_throw ' => false ,
34
+ ])
35
+ ->setFinder ($ finder );
Original file line number Diff line number Diff line change 18
18
"geo-io/interface" : " 2.x-dev"
19
19
},
20
20
"require-dev" : {
21
+ "friendsofphp/php-cs-fixer" : " ^3.1" ,
21
22
"phpunit/phpunit" : " ^9.5"
22
23
},
23
24
"autoload" : {
You can’t perform that action at this time.
0 commit comments