php-analyzer (http://goo.gl/HJJS0) checks & fix applied