aboutsummaryrefslogtreecommitdiffstats
path: root/thumb.php
diff options
context:
space:
mode:
authorumherirrender <umherirrender_de.wp@web.de>2014-04-14 21:43:18 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2014-04-14 19:52:18 +0000
commit9c614ac02d884abc110146d520cc842998d85e6a (patch)
treeb18868a0d9ab7363ca82f13cfb8d3cd75dd0bc00 /thumb.php
parent8f2ebcbf6769451c51e4c6a8dc138d619ba8d6aa (diff)
downloadmediawikicore-9c614ac02d884abc110146d520cc842998d85e6a.tar.gz
mediawikicore-9c614ac02d884abc110146d520cc842998d85e6a.zip
Fixed some @params documentation
Swapped some "$var type" to "type $var" or added missing types before the $var. Changed some other types to match the more common spelling. Makes beginning of some text in captial. Change-Id: I8c9f30128b46086064326708a4878228ba459447
Diffstat (limited to 'thumb.php')
-rw-r--r--thumb.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/thumb.php b/thumb.php
index b0d9f10eddc6..3f8e0d3fe3c7 100644
--- a/thumb.php
+++ b/thumb.php
@@ -88,7 +88,7 @@ function wfThumbHandle404() {
/**
* Stream a thumbnail specified by parameters
*
- * @param $params Array List of thumbnailing parameters. In addition to parameters
+ * @param array $params List of thumbnailing parameters. In addition to parameters
* passed to the MediaHandler, this may also includes the keys:
* f (for filename), archived (if archived file), temp (if temp file),
* w (alias for width), p (alias for page), r (ignored; historical),
@@ -400,8 +400,8 @@ function wfThumbAttemptKey( File $img, $thumbName ) {
*
* Transform specific parameters are set later via wfExtractThumbParams().
*
- * @param $thumbRel String Thumbnail path relative to the thumb zone
- * @return Array|null associative params array or null
+ * @param string $thumbRel Thumbnail path relative to the thumb zone
+ * @return array|null Associative params array or null
*/
function wfExtractThumbRequestInfo( $thumbRel ) {
$repo = RepoGroup::singleton()->getLocalRepo();
@@ -437,9 +437,9 @@ function wfExtractThumbRequestInfo( $thumbRel ) {
* Convert a thumbnail name (122px-foo.png) to parameters, using
* file handler.
*
- * @param File $file File object for file in question.
- * @param $param Array Array of parameters so far.
- * @return Array parameters array with more parameters.
+ * @param File $file File object for file in question
+ * @param array $param Array of parameters so far
+ * @return array Parameters array with more parameters
*/
function wfExtractThumbParams( $file, $params ) {
if ( !isset( $params['thumbName'] ) ) {
@@ -495,8 +495,8 @@ function wfExtractThumbParams( $file, $params ) {
/**
* Output a thumbnail generation error message
*
- * @param $status integer
- * @param $msg string
+ * @param int $status
+ * @param string $msg
* @return void
*/
function wfThumbError( $status, $msg ) {