mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Refactor various code.
This commit is contained in:
		| @@ -45,7 +45,7 @@ PHP_CS_FIXER_IGNORE_ENV=true | ||||
| ./vendor/bin/php-cs-fixer fix \ | ||||
|     --config $SCRIPT_DIR/php-cs-fixer/.php-cs-fixer.php \ | ||||
|     --format=$OUTPUT_FORMAT \ | ||||
|     --allow-risky=yes $EXTRA_PARAMS \ | ||||
|     --allow-risky=yes $EXTRA_PARAMS | ||||
|  | ||||
| EXIT_CODE=$? | ||||
|  | ||||
|   | ||||
| @@ -31,16 +31,15 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||||
| # Do static code analysis. | ||||
| if [[ $GITHUB_ACTIONS = "" ]] | ||||
| then | ||||
|     ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=table > phpstan-report.txt | ||||
|     ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --error-format=table > phpstan-report.txt | ||||
|     EXIT_CODE=$? | ||||
|     echo 'The PHPstan report can be found in phpstan-report.txt' | ||||
| fi | ||||
|  | ||||
| if [[ $GITHUB_ACTIONS = "true" ]] | ||||
| then | ||||
|     ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=github > phpstan-report.txt | ||||
|     ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=github | ||||
|     EXIT_CODE=$? | ||||
|     cat phpstan-report.txt | ||||
| fi | ||||
|  | ||||
| exit $EXIT_CODE | ||||
|   | ||||
		Reference in New Issue
	
	Block a user