Checks file path exists or not

This commit is contained in:
Sina Sharifzade 2016-06-09 19:27:43 +04:30
parent 7a41635165
commit ee3d9b30af
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = class PHPCSFixer extends Beautifier
beautify: (text, language, options, context) ->
@debug('php-cs-fixer', options)
configFile = @findFile(path.dirname(context.filePath), '.php_cs')
configFile = if context.filePath then @findFile(path.dirname(context.filePath), '.php_cs')
if @isWindows
# Find php-cs-fixer.phar script