Various code fixes.

This commit is contained in:
James Cole
2022-10-31 05:39:22 +01:00
parent 33f370359c
commit b57785a234
9 changed files with 20 additions and 5 deletions

View File

@@ -12,7 +12,10 @@ parameters:
- '#with a nullable type declaration#'
-
message: '#Control structures using switch should not be used.#'
path: ../app/Api/V1/Controllers/Data/DestroyController.php
paths:
- ../app/Api/V1/Controllers/Data/DestroyController.php
- ../app/Console/Commands/Correction/FixAccountTypes.php
paths:
- ../app
- ../database

View File

@@ -30,6 +30,6 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Do static code analysis.
# ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --error-format=table > phpstan.txt
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --error-format=table > phpstan-report.txt
exit 0