Remove PHP close tags - Z-Hub/Z-Push GitHub Wiki

If you import some existing files into Z-Push you would like to remove the PHP closing tags, remove extra lines at the end... This will help you to get the job done in no time.

Step-by-step guide

We will use PHP-CS-Fixer to solve this:

1. Download the last version of PHP-CS-Fixer:
wget "http://get.sensiolabs.org/php-cs-fixer.phar"

2. Get into your Z-Push folder (or the new files folder) and run this:
php path_to_download/php-cs-fixer.phar fix --fixers=php_closing_tag,eof_ending,encoding,linefeed .