Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -27,6 +27,10 @@ |
28 | 28 | * @ingroup SpecialPage |
29 | 29 | */ |
30 | 30 | class PageArchive { |
| 31 | + |
| 32 | + /** |
| 33 | + * @var Title |
| 34 | + */ |
31 | 35 | protected $title; |
32 | 36 | var $fileStatus; |
33 | 37 | |
— | — | @@ -555,6 +559,9 @@ |
556 | 560 | return $restored; |
557 | 561 | } |
558 | 562 | |
| 563 | + /** |
| 564 | + * @return Status |
| 565 | + */ |
559 | 566 | function getFileStatus() { return $this->fileStatus; } |
560 | 567 | } |
561 | 568 | |
— | — | @@ -920,6 +927,11 @@ |
921 | 928 | ); |
922 | 929 | } |
923 | 930 | |
| 931 | + /** |
| 932 | + * @param $rev Revision |
| 933 | + * @param $prefix |
| 934 | + * @return string |
| 935 | + */ |
924 | 936 | private function diffHeader( $rev, $prefix ) { |
925 | 937 | global $wgUser, $wgLang; |
926 | 938 | $sk = $wgUser->getSkin(); |
— | — | @@ -1301,6 +1313,9 @@ |
1302 | 1314 | |
1303 | 1315 | /** |
1304 | 1316 | * Fetch revision text link if it's available to all users |
| 1317 | + * |
| 1318 | + * @param $rev Revision |
| 1319 | + * @param $sk Skin |
1305 | 1320 | * @return string |
1306 | 1321 | */ |
1307 | 1322 | function getPageLink( $rev, $titleObj, $ts, $sk ) { |
— | — | @@ -1329,6 +1344,8 @@ |
1330 | 1345 | /** |
1331 | 1346 | * Fetch image view link if it's available to all users |
1332 | 1347 | * |
| 1348 | + * @param $file File |
| 1349 | + * @param $sk Skin |
1333 | 1350 | * @return String: HTML fragment |
1334 | 1351 | */ |
1335 | 1352 | function getFileLink( $file, $titleObj, $ts, $key, $sk ) { |
— | — | @@ -1356,6 +1373,8 @@ |
1357 | 1374 | /** |
1358 | 1375 | * Fetch file's user id if it's available to this user |
1359 | 1376 | * |
| 1377 | + * @param $file File |
| 1378 | + * @param $sk Skin |
1360 | 1379 | * @return String: HTML fragment |
1361 | 1380 | */ |
1362 | 1381 | function getFileUser( $file, $sk ) { |
— | — | @@ -1373,6 +1392,8 @@ |
1374 | 1393 | /** |
1375 | 1394 | * Fetch file upload comment if it's available to this user |
1376 | 1395 | * |
| 1396 | + * @param $file File |
| 1397 | + * @param $sk Skin |
1377 | 1398 | * @return String: HTML fragment |
1378 | 1399 | */ |
1379 | 1400 | function getFileComment( $file, $sk ) { |
Index: trunk/phase3/includes/specials/SpecialIpblocklist.php |
— | — | @@ -425,6 +425,8 @@ |
426 | 426 | |
427 | 427 | /** |
428 | 428 | * Callback function to output a block |
| 429 | + * |
| 430 | + * @param $block Block |
429 | 431 | */ |
430 | 432 | function formatRow( $block ) { |
431 | 433 | global $wgUser, $wgLang, $wgBlockAllowsUTEdit; |
Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -70,6 +70,9 @@ |
71 | 71 | parent::__construct(); |
72 | 72 | } |
73 | 73 | |
| 74 | + /** |
| 75 | + * @return Array |
| 76 | + */ |
74 | 77 | function getFieldNames() { |
75 | 78 | if ( !$this->mFieldNames ) { |
76 | 79 | global $wgMiserMode; |
Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -588,6 +588,9 @@ |
589 | 589 | /** |
590 | 590 | * Attempt to automatically create a user on login. Only succeeds if there |
591 | 591 | * is an external authentication method which allows it. |
| 592 | + * |
| 593 | + * @param $user User |
| 594 | + * |
592 | 595 | * @return integer Status code |
593 | 596 | */ |
594 | 597 | function attemptAutoCreate( $user ) { |
— | — | @@ -1070,14 +1073,18 @@ |
1071 | 1074 | |
1072 | 1075 | /** |
1073 | 1076 | * @private |
| 1077 | + * |
| 1078 | + * @param $user User |
| 1079 | + * |
| 1080 | + * @return Boolean |
1074 | 1081 | */ |
1075 | 1082 | function showCreateOrLoginLink( &$user ) { |
1076 | 1083 | if( $this->mType == 'signup' ) { |
1077 | | - return( true ); |
| 1084 | + return true; |
1078 | 1085 | } elseif( $user->isAllowed( 'createaccount' ) ) { |
1079 | | - return( true ); |
| 1086 | + return true; |
1080 | 1087 | } else { |
1081 | | - return( false ); |
| 1088 | + return false; |
1082 | 1089 | } |
1083 | 1090 | } |
1084 | 1091 | |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -480,10 +480,18 @@ |
481 | 481 | } |
482 | 482 | } |
483 | 483 | |
| 484 | + /** |
| 485 | + * @param $revision Revision |
| 486 | + * @return string |
| 487 | + */ |
484 | 488 | protected function feedItemAuthor( $revision ) { |
485 | 489 | return $revision->getUserText(); |
486 | 490 | } |
487 | 491 | |
| 492 | + /** |
| 493 | + * @param $revision Revision |
| 494 | + * @return string |
| 495 | + */ |
488 | 496 | protected function feedItemDesc( $revision ) { |
489 | 497 | if( $revision ) { |
490 | 498 | return '<p>' . htmlspecialchars( $revision->getUserText() ) . wfMsgForContent( 'colon-separator' ) . |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -46,6 +46,10 @@ |
47 | 47 | public $mRequest; // The WebRequest or FauxRequest this form is supposed to handle |
48 | 48 | public $mSourceType; |
49 | 49 | public $mUpload; |
| 50 | + |
| 51 | + /** |
| 52 | + * @var LocalFile |
| 53 | + */ |
50 | 54 | public $mLocalFile; |
51 | 55 | public $mUploadClicked; |
52 | 56 | |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -27,6 +27,10 @@ |
28 | 28 | * @ingroup SpecialPage |
29 | 29 | */ |
30 | 30 | class MovePageForm extends UnlistedSpecialPage { |
| 31 | + |
| 32 | + /** |
| 33 | + * @var Title |
| 34 | + */ |
31 | 35 | var $oldTitle, $newTitle; # Objects |
32 | 36 | var $reason; # Text input |
33 | 37 | var $moveTalk, $deleteAndMove, $moveSubpages, $fixRedirects, $leaveRedirect, $moveOverShared; # Checks |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -518,7 +518,6 @@ |
519 | 519 | |
520 | 520 | $section = ''; |
521 | 521 | |
522 | | - |
523 | 522 | if( !is_null($sectionTitle) ) { |
524 | 523 | if( $sectionText == '' ) |
525 | 524 | $sectionText = null; |
Index: trunk/phase3/includes/specials/SpecialMostlinkedcategories.php |
— | — | @@ -52,6 +52,8 @@ |
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Fetch user page links and cache their existence |
| 56 | + * |
| 57 | + * @param $db DatabaseBase |
56 | 58 | */ |
57 | 59 | function preprocessResults( $db, $res ) { |
58 | 60 | $batch = new LinkBatch; |
— | — | @@ -67,6 +69,11 @@ |
68 | 70 | } |
69 | 71 | } |
70 | 72 | |
| 73 | + /** |
| 74 | + * @param $skin Skin |
| 75 | + * @param $result |
| 76 | + * @return string |
| 77 | + */ |
71 | 78 | function formatResult( $skin, $result ) { |
72 | 79 | global $wgLang, $wgContLang; |
73 | 80 | |