Use at own risk. Programs haven't been thoroughly tested.
script: pearstyle.bash
A simple BASH script to help make you PHP code compliant with PEAR(.php.net) coding standards. Uses astyle(.sf.net) to format and indent accordingly.
Info
@author Kevin van Zonneveld
@version 0.1
@link http://kevin.vanzonneveld.net
@param (string) PHP_SOURCE the path to the PHP file to convert
@version 0.1
@link http://kevin.vanzonneveld.net
@param (string) PHP_SOURCE the path to the PHP file to convert
Example
Usage
Outputs
[ rewrites index.php and makes a backup of the original to index.orig ]
pearstyle.bash index.php
Outputs
[ rewrites index.php and makes a backup of the original to index.orig ]
download source
No comments. Be the first!