Minor documentation tweaks/improvements
authorSam Reed <reedy@users.mediawiki.org>
Tue, 8 Feb 2011 23:09:22 +0000 (23:09 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 8 Feb 2011 23:09:22 +0000 (23:09 +0000)
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderStartUpModule.php
includes/resourceloader/ResourceLoaderWikiModule.php

index 5e53442..a06f1fe 100644 (file)
@@ -143,6 +143,7 @@ class ResourceLoader {
                        return $cacheEntry;
                }
 
+               $result = '';
                // Run the filter - we've already verified one of these will work
                try {
                        switch ( $filter ) {
@@ -253,7 +254,7 @@ class ResourceLoader {
         * Get the ResourceLoaderModule object for a given module name.
         *
         * @param $name String: Module name
-        * @return Mixed: ResourceLoaderModule if module has been registered, null otherwise
+        * @return ResourceLoaderModule if module has been registered, null otherwise
         */
        public function getModule( $name ) {
                if ( !isset( $this->modules[$name] ) ) {
index 9015177..081798f 100644 (file)
@@ -27,7 +27,11 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
        protected $modifiedTime = array();
 
        /* Protected Methods */
-       
+
+       /**
+        * @param $context ResourceLoaderContext
+        * @return array
+        */
        protected function getConfig( $context ) {
                global $wgLoadScript, $wgScript, $wgStylePath, $wgScriptExtension, 
                        $wgArticlePath, $wgScriptPath, $wgServer, $wgContLang, 
index d8cd79b..3d47e7f 100644 (file)
@@ -44,7 +44,11 @@ abstract class ResourceLoaderWikiModule extends ResourceLoaderModule {
        abstract protected function getPages( ResourceLoaderContext $context );
        
        /* Protected Methods */
-       
+
+       /**
+        * @param $title Title
+        * @return null|string
+        */
        protected function getContent( $title ) {
                if ( $title->getNamespace() === NS_MEDIAWIKI ) {
                        $dbkey = $title->getDBkey();