diff --git a/src/beautifiers/php-cs-fixer.coffee b/src/beautifiers/php-cs-fixer.coffee index cfdbc0d..78d67bd 100644 --- a/src/beautifiers/php-cs-fixer.coffee +++ b/src/beautifiers/php-cs-fixer.coffee @@ -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 = [