r103438 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103437‎ | r103438 | r103439 >
Date:03:14, 17 November 2011
Author:aaron
Status:ok
Tags:
Comment:
Documentation
Modified paths:
  • /trunk/phase3/includes/filerepo/LocalRepo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalRepo.php
@@ -136,6 +136,7 @@
137137 * Checks if there is a redirect named as $title
138138 *
139139 * @param $title Title of file
 140+ * @return bool
140141 */
141142 function checkRedirect( Title $title ) {
142143 global $wgMemc;
@@ -206,6 +207,7 @@
207208 /**
208209 * Get an array or iterator of file objects for files that have a given
209210 * SHA-1 content hash.
 211+ * @return Array
210212 */
211213 function findBySha1( $hash ) {
212214 $dbr = $this->getSlaveDB();
@@ -242,6 +244,7 @@
243245 * Get a key on the primary cache for this repository.
244246 * Returns false if the repository's cache is not accessible at this site.
245247 * The parameters are the parts of the key, as for wfMemcKey().
 248+ * @return string
246249 */
247250 function getSharedCacheKey( /*...*/ ) {
248251 $args = func_get_args();
@@ -252,6 +255,7 @@
253256 * Invalidates image redirect cache related to that image
254257 *
255258 * @param $title Title of page
 259+ * @return void
256260 */
257261 function invalidateImageRedirect( Title $title ) {
258262 global $wgMemc;

Status & tagging log