Fixed "Cannot read property 'split' of undefined"

This commit is contained in:
Intelli 2018-12-10 22:43:26 -07:00 committed by GitHub
parent a3fc41a9db
commit 360e5f804c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ module.exports = class PHPCSFixer extends Beautifier
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not options.cs_fixer_config_file
if not options.cs_fixer_config_file and atom.project.getPaths()[0]
options.cs_fixer_config_file = @findFile(atom.project.getPaths()[0], configFiles)
phpCsFixerOptions = [