Separate --config and the file path for Docker

This commit is contained in:
Steven Zeck 2018-05-15 12:29:49 -05:00
parent 7d17515e25
commit 20f5628a74
No known key found for this signature in database
GPG Key ID: 621B374B29AA814A
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ module.exports = class PHPCSFixer extends Beautifier
phpCsFixerOptions = [ phpCsFixerOptions = [
"fix" "fix"
"--rules=#{options.rules}" if options.rules "--rules=#{options.rules}" if options.rules
"--config=#{options.cs_fixer_config_file}" if options.cs_fixer_config_file "--config" if options.cs_fixer_config_file
"#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
"--allow-risky=#{options.allow_risky}" if options.allow_risky "--allow-risky=#{options.allow_risky}" if options.allow_risky
"--using-cache=no" "--using-cache=no"
] ]