LinkCache: Minor clean up of documentation and variable names
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 9 Nov 2015 23:14:42 +0000 (23:14 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 9 Nov 2015 23:17:43 +0000 (23:17 +0000)
commitdcf8ec02831be30dc9ec43cbfce70f1156c24730
treeddf197ff28310d6135b1d4f42250d0752803b146
parent9b3af03e82eb3c277adbb1b25ff76acf8067cffd
LinkCache: Minor clean up of documentation and variable names

In preparation for conversion from MapCacheLRU to HashBagOStuff.

* Use early-return pattern for error and rejection cases.
* Add 'int' to @return for getGoodLinkFieldObj() per the
  values set in addGoodLinkObj().
* Add type hints for Title where possible.
* Avoid single-letter variables like $f and $s.
* Add visibility for public static methods.

Change-Id: Iab90539922f648c21cb147f749943a64f598e8de
includes/cache/LinkCache.php