parent
c5f64d1a47
commit
505ec85a77
|
@ -52,7 +52,7 @@ Thank you. [Glavin Wiechert](https://github.com/Glavin001)
|
||||||
- Requires [Pandoc](http://johnmacfarlane.net/pandoc/) to be already installed
|
- Requires [Pandoc](http://johnmacfarlane.net/pandoc/) to be already installed
|
||||||
- [X] [Perl](https://github.com/Glavin001/atom-beautify/issues/33)
|
- [X] [Perl](https://github.com/Glavin001/atom-beautify/issues/33)
|
||||||
- [x] [PHP](https://github.com/donaldpipowitch/atom-beautify/issues/26)
|
- [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)
|
- [x] [Python](https://github.com/donaldpipowitch/atom-beautify/issues/24)
|
||||||
- Requires [autopep8](https://github.com/hhatto/autopep8) to be already installed.
|
- Requires [autopep8](https://github.com/hhatto/autopep8) to be already installed.
|
||||||
- Beautifies to [PEP 8](http://legacy.python.org/dev/peps/pep-0008/).
|
- 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
|
### PHP
|
||||||
|
|
||||||
To use with PHP we require [PHP_Beautifier](http://pear.php.net/package/PHP_Beautifier)
|
To use with PHP we require [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
|
||||||
and that you set the `Php beautifier path` in the package settings.
|
and that you set the `Php cs fixer path` in the package settings.
|
||||||
|
|
||||||
#### Retrieve the path on Mac & Linux
|
#### Retrieve the path on Mac & Linux
|
||||||
|
|
||||||
Run `which php_beautifier` in your Terminal.
|
Run `which php-cs-fixer` in your Terminal.
|
||||||
|
|
||||||
### Python
|
### Python
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Requires https://github.com/FriendsOfPHP/PHP-CS-Fixer
|
Requires https://github.com/FriendsOfPHP/PHP-CS-Fixer
|
||||||
###
|
###
|
||||||
getCmd = (inputPath, outputPath, options) ->
|
getCmd = (inputPath, outputPath, options) ->
|
||||||
phpCsFixerPath = options.beautifier_path # jshint ignore: line
|
phpCsFixerPath = options.cs_fixer_path # jshint ignore: line
|
||||||
fixers = options.fixers
|
fixers = options.fixers
|
||||||
level = options.level # jshint ignore: line
|
level = options.level # jshint ignore: line
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,7 @@ module.exports =
|
||||||
description: "Specify a configuration file which will override the default name of .perltidyrc"
|
description: "Specify a configuration file which will override the default name of .perltidyrc"
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
php_beautifier_path:
|
php_cs_fixer_path:
|
||||||
type: 'string'
|
type: 'string'
|
||||||
default: ""
|
default: ""
|
||||||
description: "Path to the `php-cs-fixer` CLI executable"
|
description: "Path to the `php-cs-fixer` CLI executable"
|
||||||
|
|
Loading…
Reference in New Issue