Page tree
Skip to end of metadata
Go to start of metadata

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 ""

  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 .


Remember to do this with your job already commited, or at least backed up; you don't know if it will break your code badly.