Merge pull request #2141 from Glavin001/phpcbf-patch1

Require path in phpcbf
This commit is contained in:
Steven Zeck 2018-05-28 17:14:21 -05:00 committed by GitHub
commit 7f9d838093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Requires https://github.com/FriendsOfPHP/phpcbf
"use strict" "use strict"
Beautifier = require('./beautifier') Beautifier = require('./beautifier')
path = require('path')
module.exports = class PHPCBF extends Beautifier module.exports = class PHPCBF extends Beautifier
name: "PHPCBF" name: "PHPCBF"
@ -23,6 +24,7 @@ module.exports = class PHPCBF extends Beautifier
cmd: "phpcbf" cmd: "phpcbf"
homepage: "https://github.com/squizlabs/PHP_CodeSniffer" homepage: "https://github.com/squizlabs/PHP_CodeSniffer"
installation: "https://github.com/squizlabs/PHP_CodeSniffer#installation" installation: "https://github.com/squizlabs/PHP_CodeSniffer#installation"
optional: true
version: { version: {
parse: (text) -> text.match(/version (\d+\.\d+\.\d+)/)[1] parse: (text) -> text.match(/version (\d+\.\d+\.\d+)/)[1]
} }