Fix linting error
This commit is contained in:
parent
dbfc939271
commit
dda4672f93
|
@ -22,7 +22,7 @@ module.exports = class PHPCBF extends Beautifier
|
||||||
beautify: (text, language, options) ->
|
beautify: (text, language, options) ->
|
||||||
@debug('phpcbf', options)
|
@debug('phpcbf', options)
|
||||||
standardFiles = ['phpcs.xml', 'phpcs.xml.dist', 'phpcs.ruleset.xml', 'ruleset.xml']
|
standardFiles = ['phpcs.xml', 'phpcs.xml.dist', 'phpcs.ruleset.xml', 'ruleset.xml']
|
||||||
standardFile = @findFile(atom.project.getPaths()[0], standardFiles);
|
standardFile = @findFile(atom.project.getPaths()[0], standardFiles)
|
||||||
|
|
||||||
options.standard = standardFile if standardFile
|
options.standard = standardFile if standardFile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue