diff --git a/README.md b/README.md index 1cf646b..70e662e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Thank you. [Glavin Wiechert](https://github.com/Glavin001) - Requires [Pandoc](http://johnmacfarlane.net/pandoc/) to be already installed - [X] [Perl](https://github.com/Glavin001/atom-beautify/issues/33) - [x] [PHP](https://github.com/donaldpipowitch/atom-beautify/issues/26) - - Requires [PHP_Beautifier](http://pear.php.net/package/PHP_Beautifier) to be already installed. + - Requires [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) to be already installed. - [x] [Python](https://github.com/donaldpipowitch/atom-beautify/issues/24) - Requires [autopep8](https://github.com/hhatto/autopep8) to be already installed. - Beautifies to [PEP 8](http://legacy.python.org/dev/peps/pep-0008/). @@ -208,12 +208,12 @@ See [examples/nested-jsbeautifyrc/.jsbeautifyrc](https://github.com/donaldpipowi ### PHP -To use with PHP we require [PHP_Beautifier](http://pear.php.net/package/PHP_Beautifier) -and that you set the `Php beautifier path` in the package settings. +To use with PHP we require [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) +and that you set the `Php cs fixer path` in the package settings. #### Retrieve the path on Mac & Linux -Run `which php_beautifier` in your Terminal. +Run `which php-cs-fixer` in your Terminal. ### Python diff --git a/lib/langs/php-beautify.coffee b/lib/langs/php-beautify.coffee index 43e447b..9c2afa4 100644 --- a/lib/langs/php-beautify.coffee +++ b/lib/langs/php-beautify.coffee @@ -2,7 +2,7 @@ Requires https://github.com/FriendsOfPHP/PHP-CS-Fixer ### getCmd = (inputPath, outputPath, options) -> - phpCsFixerPath = options.beautifier_path # jshint ignore: line + phpCsFixerPath = options.cs_fixer_path # jshint ignore: line fixers = options.fixers level = options.level # jshint ignore: line diff --git a/lib/language-options.coffee b/lib/language-options.coffee index 6cb0837..e277810 100644 --- a/lib/language-options.coffee +++ b/lib/language-options.coffee @@ -272,7 +272,7 @@ module.exports = description: "Specify a configuration file which will override the default name of .perltidyrc" # PHP - php_beautifier_path: + php_cs_fixer_path: type: 'string' default: "" description: "Path to the `php-cs-fixer` CLI executable"