Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/126967
Change subject: Fixed some @params documentation (skins)
......................................................................
Fixed some @params documentation (skins)
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.
Also added some missing @param.
Change-Id: I3f6affbf6f58ec83d6290cdc15a83d7956ce653a
---
M skins/CologneBlue.php
M skins/Modern.php
M skins/MonoBook.php
M skins/Vector.php
4 files changed, 26 insertions(+), 24 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/67/126967/1
diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php
index 7c2860e..3b53468 100644
--- a/skins/CologneBlue.php
+++ b/skins/CologneBlue.php
@@ -36,7 +36,7 @@
var $useHeadElement = true;
/**
- * @param $out OutputPage
+ * @param OutputPage $out
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
@@ -47,6 +47,8 @@
/**
* Override langlink formatting behavior not to uppercase the language
names.
* See otherLanguages() in CologneBlueTemplate.
+ * @param string $name
+ * @return string
*/
function formatLanguageName( $name ) {
return $name;
@@ -137,9 +139,9 @@
/**
* Used in bottomLinks() to eliminate repetitive code.
*
- * @param $key string Key to be passed to makeListItem()
- * @param $navlink array Navlink suitable for
processNavlinkForDocument()
- * @param $message string Key of the message to use in place of
standard text
+ * @param string $key Key to be passed to makeListItem()
+ * @param array $navlink Navlink suitable for
processNavlinkForDocument()
+ * @param string $message Key of the message to use in place of
standard text
*
* @return string
*/
@@ -257,8 +259,8 @@
* and removes the accesskeys. This is necessary to be able to use the
same navlink twice,
* e.g. in sidebar and in footer.
*
- * @param $navlink array Navigational link generated by SkinTemplate
- * @param $idPrefix mixed Prefix to add to id of this navlink. If
false, id is removed entirely. Default is 'cb-'.
+ * @param array $navlink Navigational link generated by SkinTemplate
+ * @param mixed $idPrefix Prefix to add to id of this navlink. If
false, id is removed entirely. Default is 'cb-'.
*/
function processNavlinkForDocument( $navlink, $idPrefix = 'cb-' ) {
if ( $navlink['id'] ) {
@@ -407,8 +409,8 @@
/**
* Adds CologneBlue-specific items to the sidebar: qbedit,
qbpageoptions and qbmyoptions menus.
*
- * @param $bar sidebar data
- * @return array modified sidebar data
+ * @param array $bar Sidebar data
+ * @return array Modified sidebar data
*/
function sidebarAdditions( $bar ) {
// "This page" and "Edit" menus
@@ -543,7 +545,7 @@
}
/**
- * @param $label string
+ * @param string $label
* @return string
*/
function searchForm( $which ) {
diff --git a/skins/Modern.php b/skins/Modern.php
index 8d778cf..81c0f51 100644
--- a/skins/Modern.php
+++ b/skins/Modern.php
@@ -36,7 +36,7 @@
$template = 'ModernTemplate', $useHeadElement = true;
/**
- * @param $out OutputPage
+ * @param OutputPage $out
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
diff --git a/skins/MonoBook.php b/skins/MonoBook.php
index 34f5965..fe6a25f 100644
--- a/skins/MonoBook.php
+++ b/skins/MonoBook.php
@@ -40,7 +40,7 @@
$template = 'MonoBookTemplate', $useHeadElement = true;
/**
- * @param $out OutputPage
+ * @param OutputPage $out
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
@@ -172,7 +172,7 @@
/*************************************************************************************************/
/**
- * @param $sidebar array
+ * @param array $sidebar
*/
protected function renderPortals( $sidebar ) {
if ( !isset( $sidebar['SEARCH'] ) ) {
@@ -295,8 +295,8 @@
/*************************************************************************************************/
/**
- * @param $bar string
- * @param $cont array|string
+ * @param string $bar
+ * @param array|string $cont
*/
function customBox( $bar, $cont ) {
$portletAttribs = array( 'class' => 'generated-sidebar
portlet', 'id' => Sanitizer::escapeId( "p-$bar" ), 'role' => 'navigation' );
diff --git a/skins/Vector.php b/skins/Vector.php
index 5b944eb..8ede82a 100644
--- a/skins/Vector.php
+++ b/skins/Vector.php
@@ -40,7 +40,7 @@
/**
* Initializes output page and sets up skin-specific parameters
- * @param $out OutputPage object to initialize
+ * @param OutputPage $out Object to initialize
*/
public function initPage( OutputPage $out ) {
global $wgLocalStylePath;
@@ -62,7 +62,7 @@
/**
* Loads skin and user CSS files.
- * @param $out OutputPage object
+ * @param OutputPage $out
*/
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
@@ -75,8 +75,8 @@
/**
* Adds classes to the body element.
*
- * @param $out OutputPage object
- * @param &$bodyAttrs Array of attributes that will be set on the body
element
+ * @param OutputPage $out
+ * @param array &$bodyAttrs Array of attributes that will be set on the
body element
*/
function addToBodyAttributes( $out, &$bodyAttrs ) {
if ( isset( $bodyAttrs['class'] ) && strlen(
$bodyAttrs['class'] ) > 0 ) {
@@ -249,7 +249,7 @@
/**
* Render a series of portals
*
- * @param $portals array
+ * @param array $portals
*/
protected function renderPortals( $portals ) {
// Force the rendering of the following portals
@@ -287,10 +287,10 @@
}
/**
- * @param $name string
- * @param $content array
- * @param $msg null|string
- * @param $hook null|string|array
+ * @param string $name
+ * @param array $content
+ * @param null|string $msg
+ * @param null|string|array $hook
*/
protected function renderPortal( $name, $content, $msg = null, $hook =
null ) {
if ( $msg === null ) {
@@ -332,7 +332,7 @@
* Render one or more navigations elements by name, automatically
reveresed
* when UI is in RTL mode
*
- * @param $elements array
+ * @param array $elements
*/
protected function renderNavigation( $elements ) {
global $wgVectorUseSimpleSearch;
--
To view, visit https://gerrit.wikimedia.org/r/126967
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f6affbf6f58ec83d6290cdc15a83d7956ce653a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits