Merge "rebuildLocalisationCache: Implement --lang option"
[lhc/web/wiklou.git] / includes / Init.php
index a8540f2..835ffdb 100644 (file)
@@ -120,7 +120,7 @@ class MWInit {
         *
         *    require( MWInit::extSetupPath( 'ParserFunctions/ParserFunctions.php' ) );
         *
-        * @param $extRel string The path relative to the extensions directory, as defined by
+        * @param string $extRel The path relative to the extensions directory, as defined by
         *   $wgExtensionsDirectory.
         *
         * @return string
@@ -166,14 +166,14 @@ class MWInit {
        static function classExists( $class ) {
                try {
                        $r = new ReflectionClass( $class );
-               } catch( ReflectionException $r ) {
+               } catch ( ReflectionException $r ) {
                        $r = false;
                }
                return $r !== false;
        }
 
        /**
-        * Determine wether a method exists within a class, using a method which works
+        * Determine whether a method exists within a class, using a method which works
         * under HipHop.
         *
         * Note that under HipHop when method_exists is given a string for it's class
@@ -187,7 +187,7 @@ class MWInit {
        static function methodExists( $class, $method ) {
                try {
                        $r = new ReflectionMethod( $class, $method );
-               } catch( ReflectionException $r ) {
+               } catch ( ReflectionException $r ) {
                        $r = false;
                }
                return $r !== false;
@@ -204,7 +204,7 @@ class MWInit {
        static function functionExists( $function ) {
                try {
                        $r = new ReflectionFunction( $function );
-               } catch( ReflectionException $r ) {
+               } catch ( ReflectionException $r ) {
                        $r = false;
                }
                return $r !== false;