Reorganise the functions doing wfProfileOut and returning on all if branches.
authorPlatonides <platonides@gmail.com>
Wed, 9 Jan 2013 13:25:49 +0000 (14:25 +0100)
committerPlatonides <platonides@gmail.com>
Sun, 13 Jan 2013 16:53:05 +0000 (17:53 +0100)
commit5d064a743339604418b462fe38d5b0bea6d1dd18
tree0791bf3e55098712c50c1a7c2785f899c1941040
parenta1af4d7cdbb9fea271d7785f47f47ecf26b1990f
Reorganise the functions doing wfProfileOut and returning on all if branches.

Makes life easier for static analysis, since they don't need to
handle if the end of a function where a wfProfileOut was not called
was reachable or not.

It is recommended to review this change ignoring whitespaces
(specially for includes/parser/Tidy.php)

Also documented the rationale for the elseif chain in UploadBase::detectVirus()

Change-Id: Ic4f65937fa9e6f926d8fcfd670e3b0e99e06eefc
includes/Article.php
includes/EditPage.php
includes/Linker.php
includes/db/DatabaseMysql.php
includes/parser/Tidy.php
includes/upload/UploadBase.php