Index: trunk/phase3/includes/Article.php |
— | — | @@ -864,7 +864,7 @@ |
865 | 865 | /** |
866 | 866 | * Get a list of users who have edited this article, not including the user who made |
867 | 867 | * the most recent revision, which you can get from $article->getUser() if you want it |
868 | | - * @return UserArray |
| 868 | + * @return UserArrayFromResult |
869 | 869 | */ |
870 | 870 | public function getContributors() { |
871 | 871 | # @todo FIXME: This is expensive; cache this info somewhere. |
Index: trunk/phase3/includes/Feed.php |
— | — | @@ -36,9 +36,8 @@ |
37 | 37 | * @ingroup Feed |
38 | 38 | */ |
39 | 39 | class FeedItem { |
40 | | - /**#@+ |
41 | | - * @var string |
42 | | - * @private |
| 40 | + /** |
| 41 | + * @var Title |
43 | 42 | */ |
44 | 43 | var $Title = 'Wiki'; |
45 | 44 | var $Description = ''; |
— | — | @@ -47,12 +46,11 @@ |
48 | 47 | var $Author = ''; |
49 | 48 | var $UniqueId = ''; |
50 | 49 | var $RSSIsPermalink; |
51 | | - /**#@-*/ |
52 | 50 | |
53 | 51 | /** |
54 | 52 | * Constructor |
55 | 53 | * |
56 | | - * @param $Title String: Item's title |
| 54 | + * @param $Title String|Title Item's title |
57 | 55 | * @param $Description String |
58 | 56 | * @param $Url String: URL uniquely designating the item. |
59 | 57 | * @param $Date String: Item's date |
Index: trunk/phase3/includes/actions/CreditsAction.php |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | |
121 | 121 | # Sift for real versus user names |
122 | 122 | foreach ( $contributors as $user ) { |
123 | | - $cnt--; |
| 123 | + $cnt--; |
124 | 124 | if ( $user->isLoggedIn() ) { |
125 | 125 | $link = self::link( $user ); |
126 | 126 | if ( !in_array( 'realname', $wgHiddenPrefs ) && $user->getRealName() ) { |
Index: trunk/phase3/includes/media/JpegOrTiff.php |
— | — | @@ -95,6 +95,10 @@ |
96 | 96 | return self::METADATA_GOOD; |
97 | 97 | } |
98 | 98 | |
| 99 | + /** |
| 100 | + * @param $image File |
| 101 | + * @return array|bool |
| 102 | + */ |
99 | 103 | function formatMetadata( $image ) { |
100 | 104 | $metadata = $image->getMetadata(); |
101 | 105 | if ( !$metadata || |
— | — | @@ -116,8 +120,8 @@ |
117 | 121 | return $this->formatMetadataHelper( $exif ); |
118 | 122 | } |
119 | 123 | |
120 | | - function getMetadataType( $image ) { |
121 | | - return 'exif'; |
122 | | - } |
| 124 | + function getMetadataType( $image ) { |
| 125 | + return 'exif'; |
| 126 | + } |
123 | 127 | } |
124 | 128 | |
Index: trunk/phase3/includes/cache/HTMLFileCache.php |
— | — | @@ -119,6 +119,8 @@ |
120 | 120 | /** |
121 | 121 | * Check if up to date cache file exists |
122 | 122 | * @param $timestamp string |
| 123 | + * |
| 124 | + * @return bool |
123 | 125 | */ |
124 | 126 | public function isFileCacheGood( $timestamp = '' ) { |
125 | 127 | global $wgCacheEpoch; |
Index: trunk/phase3/includes/specials/SpecialFilepath.php |
— | — | @@ -70,6 +70,9 @@ |
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
| 74 | + /** |
| 75 | + * @param $title Title |
| 76 | + */ |
74 | 77 | function showForm( $title ) { |
75 | 78 | global $wgOut, $wgScript; |
76 | 79 | |
Index: trunk/phase3/includes/specials/SpecialTags.php |
— | — | @@ -63,8 +63,8 @@ |
64 | 64 | } |
65 | 65 | |
66 | 66 | function doTagRow( $tag, $hitcount ) { |
67 | | - static $sk=null, $doneTags=array(); |
68 | | - if (!$sk) { |
| 67 | + static $sk = null, $doneTags = array(); |
| 68 | + if ( !$sk ) { |
69 | 69 | global $wgUser; |
70 | 70 | $sk = $wgUser->getSkin(); |
71 | 71 | } |
Index: trunk/phase3/includes/specials/SpecialMIMEsearch.php |
— | — | @@ -107,6 +107,10 @@ |
108 | 108 | return "($download) $plink . . $dimensions . . $bytes . . $user . . $time"; |
109 | 109 | } |
110 | 110 | |
| 111 | + /** |
| 112 | + * @param $type string |
| 113 | + * @return bool |
| 114 | + */ |
111 | 115 | protected static function isValidType( $type ) { |
112 | 116 | // From maintenance/tables.sql => img_major_mime |
113 | 117 | $types = array( |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -29,6 +29,10 @@ |
30 | 30 | */ |
31 | 31 | class SpecialMergeHistory extends SpecialPage { |
32 | 32 | var $mAction, $mTarget, $mDest, $mTimestamp, $mTargetID, $mDestID, $mComment; |
| 33 | + |
| 34 | + /** |
| 35 | + * @var Title |
| 36 | + */ |
33 | 37 | var $mTargetObj, $mDestObj; |
34 | 38 | |
35 | 39 | public function __construct() { |
Index: trunk/phase3/includes/Metadata.php |
— | — | @@ -101,6 +101,10 @@ |
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
| 105 | + /** |
| 106 | + * @param $name string |
| 107 | + * @param $title Title |
| 108 | + */ |
105 | 109 | protected function page( $name, $title ) { |
106 | 110 | $this->url( $name, $title->getFullUrl() ); |
107 | 111 | } |
Index: trunk/phase3/includes/Pager.php |
— | — | @@ -93,6 +93,8 @@ |
94 | 94 | |
95 | 95 | /** |
96 | 96 | * Result object for the query. Warning: seek before use. |
| 97 | + * |
| 98 | + * @var ResultWrapper |
97 | 99 | */ |
98 | 100 | public $mResult; |
99 | 101 | |