Thiemo Mättig (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/262349

Change subject: Add missing type hints and documentation to Babel class
......................................................................

Add missing type hints and documentation to Babel class

Change-Id: I216f8dd626b938bd3c43b97f18bdeb28eb6f4265
---
M Babel.class.php
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Babel 
refs/changes/49/262349/1

diff --git a/Babel.class.php b/Babel.class.php
index 0e4e117..e43957f 100644
--- a/Babel.class.php
+++ b/Babel.class.php
@@ -25,10 +25,11 @@
        /**
         * Render the Babel tower.
         *
-        * @param $parser Parser.
+        * @param Parser $parser
+        * @param string [$parameter,...]
         * @return string: Babel tower.
         */
-       public static function Render( $parser ) {
+       public static function Render( Parser $parser ) {
                global $wgBabelUseUserLanguage;
                $parameters = func_get_args();
                array_shift( $parameters );
@@ -138,9 +139,9 @@
        /**
         * Performs a link batch on a series of templates.
         *
-        * @param $parameters Array: Templates to perform the link batch on.
+        * @param string[] $parameters Templates to perform the link batch on.
         */
-       protected static function mTemplateLinkBatch( $parameters ) {
+       protected static function mTemplateLinkBatch( array $parameters ) {
                $titles = array();
                foreach ( $parameters as $name ) {
                        $title = Title::newFromText( wfMessage( 
'babel-template', $name )->inContentLanguage()->text() );

-- 
To view, visit https://gerrit.wikimedia.org/r/262349
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I216f8dd626b938bd3c43b97f18bdeb28eb6f4265
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Babel
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <thiemo.maet...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to