Cleaned up Hooks code, comments, and documentation.
authorMatmaRex <matma.rex@gmail.com>
Mon, 22 Apr 2013 14:38:47 +0000 (16:38 +0200)
committerMatmaRex <matma.rex@gmail.com>
Mon, 22 Apr 2013 14:41:17 +0000 (16:41 +0200)
commitaf125df5199b5c232bf335d735cecc6d8f8e9784
tree65d142783a7057c20f11857cd1400cd28e818924
parent3b3a6c9ae9c033cbd1219c9cd7a562719286777b
Cleaned up Hooks code, comments, and documentation.

Essentially rewrote Hooks::run() to get rid of the ridiculous
four levels of indentation. Also made some slight adjustments
to fix rare edge cases (for example, moved set_error_handler
after wfProfileIn in case Profiler triggers an error).

Change-Id: Iafdd4ceedac067b49ac597359ac456f4617da9e8
includes/Hooks.php
tests/phpunit/includes/HooksTest.php