Merge "Remove use of strencode() in buildLike()"
[lhc/web/wiklou.git] / maintenance / language / checkLanguage.inc
index 212a0d1..990f258 100644 (file)
@@ -41,7 +41,7 @@ class CheckLanguageCLI {
 
        /**
         * Constructor.
-        * @param $options array Options for script.
+        * @param array $options Options for script.
         */
        public function __construct( array $options ) {
                if ( isset( $options['help'] ) ) {
@@ -89,7 +89,7 @@ class CheckLanguageCLI {
                        $this->output = $options['output'];
                }
 
-               $this->L = new languages( $this->includeExif );
+               $this->L = new Languages( $this->includeExif );
        }
 
        /**
@@ -118,7 +118,7 @@ class CheckLanguageCLI {
 
        /**
         * Get the checks that can easily be treated by non-speakers of the language.
-        * @return Array A list of the easy checks.
+        * @return array A list of the easy checks.
         */
        protected function easyChecks() {
                return array(
@@ -333,7 +333,9 @@ ENDS;
                        return $blacklist;
                }
 
+               // @codingStandardsIgnoreStart Ignore that globals should have a "wg" prefix.
                global $checkBlacklist;
+               // @codingStandardsIgnoreEnd
 
                $blacklist = $checkBlacklist;
 
@@ -376,7 +378,7 @@ ENDS;
 
        /**
         * Check a language.
-        * @param $code string The language code.
+        * @param string $code The language code.
         * @throws MWException
         * @return array The results.
         */
@@ -408,8 +410,8 @@ ENDS;
 
        /**
         * Format a message key.
-        * @param $key string The message key.
-        * @param $code string The language code.
+        * @param string $key The message key.
+        * @param string $code The language code.
         * @return string The formatted message key.
         */
        protected function formatKey( $key, $code ) {
@@ -556,8 +558,8 @@ class CheckExtensionsCLI extends CheckLanguageCLI {
 
        /**
         * Constructor.
-        * @param $options array Options for script.
-        * @param $extension string The extension name (or names).
+        * @param array $options Options for script.
+        * @param string $extension The extension name (or names).
         */
        public function __construct( array $options, $extension ) {
                if ( isset( $options['help'] ) ) {
@@ -610,19 +612,19 @@ class CheckExtensionsCLI extends CheckLanguageCLI {
                if ( $extension == 'all' ) {
                        foreach ( MessageGroups::singleton()->getGroups() as $group ) {
                                if ( strpos( $group->getId(), 'ext-' ) === 0 && !$group->isMeta() ) {
-                                       $this->extensions[] = new extensionLanguages( $group );
+                                       $this->extensions[] = new ExtensionLanguages( $group );
                                }
                        }
                } elseif ( $extension == 'wikimedia' ) {
                        $wikimedia = MessageGroups::getGroup( 'ext-0-wikimedia' );
                        foreach ( $wikimedia->wmfextensions() as $extension ) {
                                $group = MessageGroups::getGroup( $extension );
-                               $this->extensions[] = new extensionLanguages( $group );
+                               $this->extensions[] = new ExtensionLanguages( $group );
                        }
                } elseif ( $extension == 'flaggedrevs' ) {
                        foreach ( MessageGroups::singleton()->getGroups() as $group ) {
                                if ( strpos( $group->getId(), 'ext-flaggedrevs-' ) === 0 && !$group->isMeta() ) {
-                                       $this->extensions[] = new extensionLanguages( $group );
+                                       $this->extensions[] = new ExtensionLanguages( $group );
                                }
                        }
                } else {
@@ -630,7 +632,7 @@ class CheckExtensionsCLI extends CheckLanguageCLI {
                        foreach ( $extensions as $extension ) {
                                $group = MessageGroups::getGroup( 'ext-' . $extension );
                                if ( $group ) {
-                                       $extension = new extensionLanguages( $group );
+                                       $extension = new ExtensionLanguages( $group );
                                        $this->extensions[] = $extension;
                                } else {
                                        print "No such extension $extension.\n";
@@ -660,7 +662,7 @@ class CheckExtensionsCLI extends CheckLanguageCLI {
 
        /**
         * Get the checks that can easily be treated by non-speakers of the language.
-        * @return arrayA list of the easy checks.
+        * @return array A list of the easy checks.
         */
        protected function easyChecks() {
                return array(
@@ -731,7 +733,7 @@ ENDS;
 
        /**
         * Check a language and show the results.
-        * @param $code string The language code.
+        * @param string $code The language code.
         * @throws MWException
         */
        protected function checkLanguage( $code ) {