Check exceptions with PHPCS