Skip to content

Commit dc20158

Browse files
committed
Configured environement
1 parent 80c2268 commit dc20158

10 files changed

+2010
-7
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,17 @@ composer.phar
1010
/var/
1111
/vendor/
1212
###< symfony/framework-bundle ###
13+
14+
###> friendsofphp/php-cs-fixer ###
15+
/.php-cs-fixer.php
16+
/.php-cs-fixer.cache
17+
###< friendsofphp/php-cs-fixer ###
18+
19+
###> phpstan/phpstan ###
20+
phpstan.neon
21+
###< phpstan/phpstan ###
22+
23+
###> squizlabs/php_codesniffer ###
24+
/.phpcs-cache
25+
/phpcs.xml
26+
###< squizlabs/php_codesniffer ###

.php-cs-fixer.dist.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__)
5+
->exclude('var')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@Symfony' => true,
11+
'@PSR12' => true,
12+
'single_line_empty_body' => false,
13+
'global_namespace_import' => true,
14+
'yoda_style' => false,
15+
'class_attributes_separation' => false,
16+
'concat_space' => false,
17+
'nullable_type_declaration_for_default_null_value' => true,
18+
'method_argument_space' => false,
19+
])
20+
->setFinder($finder)
21+
;

composer.json

+19
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"php": ">=8.4",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10+
"league/csv": "^9.20",
1011
"symfony/console": "7.1.*",
1112
"symfony/dotenv": "7.1.*",
1213
"symfony/flex": "^2",
@@ -15,10 +16,17 @@
1516
"symfony/yaml": "7.1.*"
1617
},
1718
"require-dev": {
19+
"friendsofphp/php-cs-fixer": "^3.65",
20+
"phpstan/extension-installer": "^1.4",
21+
"phpstan/phpstan": "^2.0",
22+
"phpstan/phpstan-symfony": "^2.0",
23+
"squizlabs/php_codesniffer": "^3.11",
24+
"symfony/maker-bundle": "^1.61"
1825
},
1926
"config": {
2027
"allow-plugins": {
2128
"php-http/discovery": true,
29+
"phpstan/extension-installer": true,
2230
"symfony/flex": true,
2331
"symfony/runtime": true
2432
},
@@ -54,6 +62,17 @@
5462
],
5563
"post-update-cmd": [
5664
"@auto-scripts"
65+
],
66+
"code-check": [
67+
"./vendor/bin/phpcs",
68+
"./vendor/bin/php-cs-fixer check -vvv"
69+
],
70+
"code-fix": [
71+
"./vendor/bin/phpcbf",
72+
"./vendor/bin/php-cs-fixer fix"
73+
],
74+
"phpstan": [
75+
"./vendor/bin/phpstan"
5776
]
5877
},
5978
"conflict": {

0 commit comments

Comments
 (0)