1
0
Fork 0
mirror of https://github.com/Z-Hub/Z-Push.git synced 2026-04-26 19:35:56 +03:00
1 Remove PHP close tags
matidau edited this page 2023-04-26 14:44:04 +10:00

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 .