Merge pull request #2141 from Glavin001/phpcbf-patch1
Require path in phpcbf
This commit is contained in:
commit
7f9d838093
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue