Documentation, spaces, braces, explicit member variables
authorSam Reed <reedy@users.mediawiki.org>
Fri, 9 Mar 2012 23:33:42 +0000 (23:33 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 9 Mar 2012 23:33:42 +0000 (23:33 +0000)
includes/installer/Installer.php
includes/specials/SpecialContributions.php
includes/specials/SpecialVersion.php

index 67e167d..d6a0c86 100644 (file)
@@ -1094,12 +1094,16 @@ abstract class Installer {
                if( $utf8 ) {
                        $useNormalizer = 'utf8';
                        $utf8 = utf8_normalize( $not_normal_c, UtfNormal::UNORM_NFC );
-                       if ( $utf8 !== $normal_c ) $needsUpdate = true;
+                       if ( $utf8 !== $normal_c ) {
+                               $needsUpdate = true;
+                       }
                }
                if( $intl ) {
                        $useNormalizer = 'intl';
                        $intl = normalizer_normalize( $not_normal_c, Normalizer::FORM_C );
-                       if ( $intl !== $normal_c ) $needsUpdate = true;
+                       if ( $intl !== $normal_c ) {
+                               $needsUpdate = true;
+                       }
                }
 
                // Uses messages 'config-unicode-using-php', 'config-unicode-using-utf8', 'config-unicode-using-intl'
index 501ccee..0540474 100644 (file)
@@ -220,6 +220,7 @@ class SpecialContributions extends SpecialPage {
                }
                $nt = $userObj->getUserPage();
                $talk = $userObj->getTalkPage();
+               $links = '';
                if ( $talk ) {
                        $tools = $this->getUserLinks( $nt, $talk, $userObj );
                        $links = $this->getLanguage()->pipeList( $tools );
@@ -545,6 +546,11 @@ class ContribsPager extends ReverseChronologicalPager {
        var $namespace = '', $mDb;
        var $preventClickjacking = false;
 
+       /**
+        * @var array
+        */
+       protected $mParentLens;
+
        function __construct( IContextSource $context, array $options ) {
                parent::__construct( $context );
 
@@ -709,6 +715,7 @@ class ContribsPager extends ReverseChronologicalPager {
 
        /**
         * Do a batched query to get the parent revision lengths
+        * @param $revIds array
         * @return array
         */
        private function getParentLengths( array $revIds ) {
@@ -751,6 +758,7 @@ class ContribsPager extends ReverseChronologicalPager {
         * was not written by the target user.
         *
         * @todo This would probably look a lot nicer in a table.
+        * @param $row
         * @return string
         */
        function formatRow( $row ) {
@@ -902,6 +910,9 @@ class ContribsPager extends ReverseChronologicalPager {
                $this->preventClickjacking = true;
        }
 
+       /**
+        * @return bool
+        */
        public function getPreventClickjacking() {
                return $this->preventClickjacking;
        }
index 597863b..2b44337 100644 (file)
@@ -725,7 +725,7 @@ class SpecialVersion extends SpecialPage {
                }
 
                preg_match( "/ref: (.*)/",
-                       file_get_contents( $HEADfile), $m );
+                       file_get_contents( $HEADfile ), $m );
 
                $REFfile = "{$BASEDIR}{$m[1]}";
                if( !file_exists( $REFfile ) ) {