Replace tabs by spaces

I learned something new today: find . -name '*.php' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; Of great help to those who want their code to become PSR2 compliant. Works best in Linux but also under Git Bash…

#Tags: php, linux, PHP, git, psr2