change tabs to spaces for PSR-2
use phpcs --standard=psr2 to find and fix remaining PSR-2 compliance issues