Code cleanup

* Fixed naming conventions for variable in AHttpRequest.php
* Replaced if-statement with switch statement in Formatter.php