Skip to content

Commit

Permalink
SANTA-222: PHP CS Fix applied + phpstan doctrine added + phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Chiu committed Sep 10, 2024
1 parent 15f9f3a commit 1b90461
Show file tree
Hide file tree
Showing 95 changed files with 2,038 additions and 906 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ HOST=secretsanta.lndo.site

###> Mailer ###
MAILER_DSN=smtp://mailhog:1025
#MANDRILL_DSN=smtp://smtp.mandrillapp.com:587?encryption=tls&auth_mode=login&username=&password=
#MANDRILL_DSN=mandrill+smtp://<username>:<password>@default
MANDRILL_DSN=smtp://mailhog:1025
NOREPLY_EMAIL=[email protected]
CONTACT_EMAIL=[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
run: bin/console doctrine:schema:update -vvv --force
- name: Run tests
run: make test
- name: Run PHP CS Fixer
run: PHP_CS_FIXER_FUTURE_MODE=1 php ./vendor/bin/php-cs-fixer fix -v --dry-run --diff
- name: Prepare Symfony local server TLS
run: symfony server:ca:install
- name: Run Cypress E2E tests
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ cypress/screenshots
npm-debug.log
yarn-error.log
###< symfony/webpack-encore-bundle ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###
13 changes: 13 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
])
->setFinder($finder)
;
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"symfony/framework-bundle": "^6.4",
"symfony/http-client": "^6.4",
"symfony/intl": "^6.4",
"symfony/mailchimp-mailer": "^6.4",
"symfony/mailer": "^6.4",
"symfony/monolog-bundle": "^3.1",
"symfony/process": "^6.4",
Expand All @@ -48,7 +49,10 @@
"require-dev": {
"doctrine/data-fixtures": "^1.4",
"doctrine/doctrine-fixtures-bundle": "^3.6",
"friendsofphp/php-cs-fixer": "^3.64",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-doctrine": "^1.5",
"phpunit/phpunit": "^9",
"se/selenium-server-standalone": "3.4.*",
"symfony/browser-kit": "^6.4",
Expand All @@ -68,7 +72,8 @@
"sort-packages": true,
"allow-plugins": {
"symfony/flex": true,
"symfony/runtime": true
"symfony/runtime": true,
"phpstan/extension-installer": true
}
},
"autoload": {
Expand Down
Loading

0 comments on commit 1b90461

Please sign in to comment.