Fix unused variables
authorSam Reed <reedy@users.mediawiki.org>
Fri, 13 May 2011 16:16:44 +0000 (16:16 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 13 May 2011 16:16:44 +0000 (16:16 +0000)
Decapitalise False

includes/Article.php
includes/ZipDirectoryReader.php
skins/Standard.php
tests/selenium/suites/AddContentToNewPageTestCase.php

index b3cd3b4..4f1d546 100644 (file)
@@ -1733,7 +1733,7 @@ class Article {
         * or else the record will be left in a funky state.
         * Best if all done inside a transaction.
         *
-        * @param $dbw Database
+        * @param $dbw DatabaseBase
         * @return int The newly created page_id key, or false if the title already existed
         * @private
         */
index eb75b68..d21cf3b 100644 (file)
@@ -16,8 +16,8 @@ class ZipDirectoryReader {
         * suspicious or ambiguous input, instead of emulating some standard
         * behaviour.
         *
-        * @param $fileName The archive file name
-        * @param $callback The callback function. It will be called for each file 
+        * @param $fileName string The archive file name
+        * @param $callback Array The callback function. It will be called for each file
         *   with a single associative array each time, with members:
         *
         *      - name: The file name. Directories conventionally have a trailing 
@@ -27,7 +27,7 @@ class ZipDirectoryReader {
         *
         *      - size: The uncompressed file size
         *
-        * @param $options An associative array of read options, with the option
+        * @param $options Array An associative array of read options, with the option
         *    name in the key. This may currently contain:
         *
         *      - zip64: If this is set to true, then we will emulate a 
@@ -44,7 +44,7 @@ class ZipDirectoryReader {
         *        valid ZIP64 file, and working out what non-ZIP64 readers will make 
         *        of such a file is not trivial.
         *
-        * @return Status object. The following fatal errors are defined:
+        * @return Status object. The following fatal errors are defined:
         *
         *      - zip-file-open-error: The file could not be opened.
         *
@@ -119,6 +119,8 @@ class ZipDirectoryReader {
 
        /**
         * Read the directory according to settings in $this.
+        *
+        * @return Status
         */
        function execute() {
                $this->file = fopen( $this->fileName, 'r' );
index bb540ae..41a796b 100644 (file)
@@ -120,7 +120,7 @@ class StandardTemplate extends LegacyTemplate {
                unset( $bar['TOOLBOX'] );
 
                $barnumber = 1;
-               foreach ( $bar as $heading => $browseLinks ) {
+               foreach ( $bar as $browseLinks ) {
                        if ( $barnumber > 1 ) {
                                $s .= "\n<hr class='sep' />";
                        } 
index 4965b52..72e75e1 100644 (file)
@@ -114,8 +114,8 @@ class AddContentToNewPageTestCase extends SeleniumTestCase {
 
     // Add level 2 headline and verify output in the preview
     public function testAddLevel2HeadLine() {
-        $blnElementPresent = False;
-        $blnTextPresent = False;
+        $blnElementPresent = false;
+        $blnTextPresent = false;
         $this->getExistingPage();
         $this->clickEditLink();
         $this->loadWikiEditor();