Fixed "Cannot read property 'split' of undefined"
This commit is contained in:
parent
a3fc41a9db
commit
360e5f804c
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue