updated PSR-2 and PHP 5.3 compliance for elements