Skip to content

Commit d4790b8

Browse files
committed
feat(code_quality): Add php_cs_fixer and phpstan packages.
- Add phpstan package - Add php-cs-fixer package - Add .php_cs.dist - Add phpstan.neon - Update HomeController.php - Update SecurityController.php - Update Users.php entity - Update UsersRepository.php - Update AbstractSocialAuthenticator.php - Update AppAuthenticator.php - Update DiscordAuthenticator.php - Update FacebookAuthenticator.php - Update GoogleAuthenticator.php - Update GithubAuthenticator.php - Update FacebookAuthenticator.php - Update home/index.html.twig
1 parent d95befe commit d4790b8

17 files changed

+533
-74
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
.phpunit.result.cache
1515
/phpunit.xml
1616
###< symfony/phpunit-bridge ###
17+
18+
###> friendsofphp/php-cs-fixer ###
19+
/.php_cs
20+
/.php_cs.cache
21+
###< friendsofphp/php-cs-fixer ###

.php_cs.dist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__)
5+
->exclude('var')
6+
;
7+
8+
return PhpCsFixer\Config::create()
9+
->setRules([
10+
'@Symfony' => true,
11+
'array_syntax' => ['syntax' => 'short'],
12+
])
13+
->setFinder($finder)
14+
;

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"wohali/oauth2-discord-new": "^1.1"
4747
},
4848
"require-dev": {
49+
"friendsofphp/php-cs-fixer": "^2.16",
50+
"phpstan/phpstan": "^0.12.50",
4951
"symfony/browser-kit": "^5.1",
5052
"symfony/css-selector": "^5.1",
5153
"symfony/debug-bundle": "^5.1",

composer.lock

Lines changed: 338 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)