r99523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99522‎ | r99523 | r99524 >
Date:18:30, 11 October 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix comment blocks that start /* to /**
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/Exception.php (modified) (history)
  • /trunk/phase3/includes/installer/DatabaseUpdater.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesLv.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesRu.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesUk.php (modified) (history)
  • /trunk/phase3/maintenance/fuzz-tester.php (modified) (history)
  • /trunk/phase3/maintenance/populateParentId.php (modified) (history)
  • /trunk/phase3/maintenance/populateRevisionLength.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/GlobalFunctions/wfExpandUrlTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/IPTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/RandomImageGenerator.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/media/JpegMetadataExtractorTest.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiButtonsAvailabilityTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiDifferentDatabaseAccountTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiDifferntDatabasePrefixTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiErrorsConnectToDatabasePageTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiErrorsNamepageTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiHelpFieldHintTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiInstallationConfig.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiMySQLDataBaseTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiMySQLiteDataBaseTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiOnAlreadyInstalledTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiRestartInstallationTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiRightFrameworkLinksTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiUpgradeExistingDatabaseTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/installer/MediaWikiUserInterfaceTestCase.php (modified) (history)
  • /trunk/phase3/tests/selenium/suites/MediawikiCoreSmokeTestSuite.php (modified) (history)
  • /trunk/phase3/tests/selenium/suites/SimpleSeleniumTestSuite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/fuzz-tester.php
@@ -2395,8 +2395,8 @@
23962396
23972397 // ////////////////// HTML VALIDATION /////////////////////////
23982398
2399 -/*
2400 - ** Asks the validator whether this is valid HTML, or not.
 2399+/**
 2400+ * Asks the validator whether this is valid HTML, or not.
24012401 */
24022402 function validateHTML( $text ) {
24032403
Index: trunk/phase3/maintenance/populateRevisionLength.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Populates the rev_len field for old revisions created before MW 1.10.
55 *
66 * This program is free software; you can redistribute it and/or modify
Index: trunk/phase3/maintenance/populateParentId.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Makes the required database updates for rev_parent_id
55 * to be of any use. It can be used for some simple tracking
66 * and to find new page edits by users.
Index: trunk/phase3/tests/selenium/suites/SimpleSeleniumTestSuite.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Sample test suite.
55 * Two ways to configure MW for these tests
66 * 1) If you are running multiple test suites, add the following in LocalSettings.php
Index: trunk/phase3/tests/selenium/suites/MediawikiCoreSmokeTestSuite.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Stubs for now. We're going to start populating this test.
55 */
66 class MediawikiCoreSmokeTestSuite extends SeleniumTestSuite
Index: trunk/phase3/tests/selenium/installer/MediaWikiErrorsNamepageTestCase.php
@@ -27,7 +27,7 @@
2828 *
2929 */
3030
31 -/*
 31+/**
3232 * Test Case ID : 10 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3333 * Test Case Name : Invalid/ blank values for fields in 'Name' page.
3434 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiErrorsConnectToDatabasePageTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once ( dirname( __FILE__ ) . '/MediaWikiInstallationCommonFunction.php' );
3333
34 -/*
 34+/**
3535 * Test Case ID : 09 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : Invalid/ blank values for fields in 'Connect to database' page.
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiOnAlreadyInstalledTestCase.php
@@ -31,7 +31,7 @@
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
3434
35 -/*
 35+/**
3636 * Test Case ID : 03 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3737 * Test Case Name : Install mediawiki on a already installed Mediawiki.]
3838 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiHelpFieldHintTestCase.php
@@ -27,7 +27,7 @@
2828 *
2929 */
3030
31 -/*
 31+/**
3232 * Test Case ID : 29 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3333 * Test Case Name : Help field hint availability for the fields.
3434 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiUpgradeExistingDatabaseTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
34 -/*
 34+/**
3535 * Test Case ID : 05 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : Install Mediawiki by updating the existing database.
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiButtonsAvailabilityTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
34 -/*
 34+/**
3535 * Test Case ID : 30 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name :'Back' and 'Continue' button availability
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiMySQLDataBaseTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
34 -/*
 34+/**
3535 * Test Case ID : 01 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : Install Mediawiki using 'MySQL' database type successfully
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiInstallationConfig.php
@@ -28,7 +28,7 @@
2929 */
3030
3131
32 -/*
 32+/**
3333 * MediaWikiInstallerTestSuite.php can be run one time successfully
3434 * with current value of the 'DB_NAME_PREFIX'.
3535 * If you wish to run the suite more than one time, you need to change
@@ -39,7 +39,7 @@
4040 define( 'PORT', "8080" );
4141 define( 'HOST_NAME', "localhost" );
4242
43 -/*
 43+/**
4444 * Use the followings to run the test suite in different browsers.
4545 * Firefox : *firefox
4646 * IE : *iexplore
Index: trunk/phase3/tests/selenium/installer/MediaWikiMySQLiteDataBaseTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
34 -/*
 34+/**
3535 * Test Case ID : 06 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : Install Mediawiki using 'MySQL' database type successfully
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiRightFrameworkLinksTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3333
34 -/*
 34+/**
3535 * Test Case ID : 14, 15, 16, 17 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : User selects 'Read me' link.
3737 * User selects 'Release notes' link.
Index: trunk/phase3/tests/selenium/installer/MediaWikiUserInterfaceTestCase.php
@@ -29,7 +29,7 @@
3030
3131 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3232
33 -/*
 33+/**
3434 * Test Case ID : 18 - 27 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3535 * Test Case Name : UI of MediaWiki initial/ Language/ Welcome to MediaWiki!/ Connect to database/
3636 * Database settings/ Name/ Options/ Install/ Complete/ Restart Inslation pages
Index: trunk/phase3/tests/selenium/installer/MediaWikiDifferntDatabasePrefixTestCase.php
@@ -29,7 +29,7 @@
3030
3131 require_once ( dirname( __FILE__ ) . '/MediaWikiInstallationCommonFunction.php' );
3232
33 -/*
 33+/**
3434 * Test Case ID : 02 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3535 * Test Case Name : Install MediaWiki with the same database and the different
3636 * database prefixes(Share one database between multiple wikis).
Index: trunk/phase3/tests/selenium/installer/MediaWikiRestartInstallationTestCase.php
@@ -31,7 +31,7 @@
3232
3333 require_once (dirname(__FILE__).'/'.'MediaWikiInstallationCommonFunction.php');
3434
35 -/*
 35+/**
3636 * Test Case ID : 11, 12 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3737 * Test Case Name : Install mediawiki on a already installed Mediawiki.
3838 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/selenium/installer/MediaWikiDifferentDatabaseAccountTestCase.php
@@ -30,7 +30,7 @@
3131
3232 require_once ( dirname( __FILE__ ) . '/MediaWikiInstallationCommonFunction.php' );
3333
34 -/*
 34+/**
3535 * Test Case ID : 04 (http://www.mediawiki.org/wiki/New_installer/Test_plan)
3636 * Test Case Name : Install MediaWiki with different Database accounts for web access.
3737 * Version : MediaWiki 1.18alpha
Index: trunk/phase3/tests/phpunit/includes/media/JpegMetadataExtractorTest.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * @todo Could use a test of extended XMP segments. Hard to find programs that
55 * create example files, and creating my own in vim propbably wouldn't
66 * serve as a very good "test". (Adobe photoshop probably creates such files
Index: trunk/phase3/tests/phpunit/includes/GlobalFunctions/wfExpandUrlTest.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Unit tests for wfExpandUrl()
55 */
66
Index: trunk/phase3/tests/phpunit/includes/IPTest.php
@@ -1,5 +1,5 @@
22 <?php
3 -/*
 3+/**
44 * Tests for IP validity functions. Ported from /t/inc/IP.t by avar.
55 */
66
Index: trunk/phase3/tests/phpunit/includes/api/RandomImageGenerator.php
@@ -1,6 +1,6 @@
22 <?php
33
4 -/*
 4+/**
55 * RandomImageGenerator -- does what it says on the tin.
66 * Requires Imagick, the ImageMagick library for PHP, or the command line equivalent (usually 'convert').
77 *
Index: trunk/phase3/includes/installer/DatabaseUpdater.php
@@ -8,7 +8,7 @@
99
1010 require_once( dirname(__FILE__) . '/../../maintenance/Maintenance.php' );
1111
12 -/*
 12+/**
1313 * Class for handling database updates. Roughly based off of updaters.inc, with
1414 * a few improvements :)
1515 *
Index: trunk/phase3/includes/DefaultSettings.php
@@ -2488,7 +2488,7 @@
24892489 */
24902490 $wgResourceLoaderSources = array();
24912491
2492 -/*
 2492+/**
24932493 * Default 'remoteBasePath' value for resource loader modules.
24942494 * If not set, then $wgScriptPath will be used as a fallback.
24952495 */
@@ -3635,7 +3635,7 @@
36363636 'onView' => array()
36373637 );
36383638
3639 -/*
 3639+/**
36403640 * Put user rights log entries for autopromotion in recent changes?
36413641 * @since 1.18
36423642 */
Index: trunk/phase3/includes/Exception.php
@@ -131,7 +131,10 @@
132132 }
133133 }
134134
135 - /* Return titles of this error page */
 135+ /**
 136+ * Return titles of this error page
 137+ * @return String
 138+ */
136139 function getPageTitle() {
137140 global $wgSitename;
138141 return $this->msg( 'internalerror', "$wgSitename error" );
Index: trunk/phase3/languages/messages/MessagesRu.php
@@ -56,7 +56,7 @@
5757 * @author გიორგიმელა
5858 */
5959
60 -/*
 60+/**
6161 * Изменения сделанные в этом файле будут потеряны при обновлении MediaWiki.
6262 *
6363 * Если необходимо внести изменения в перевод отдельных строк интерфейса,
Index: trunk/phase3/languages/messages/MessagesLv.php
@@ -22,7 +22,7 @@
2323 * @author לערי ריינהארט
2424 */
2525
26 -/*
 26+/**
2727 * @copyright Copyright © 2006, Niklas Laxström
2828 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
2929 */
Index: trunk/phase3/languages/messages/MessagesUk.php
@@ -35,7 +35,7 @@
3636 * @author Тест
3737 */
3838
39 -/*
 39+/**
4040 * УВАГА! НЕ РЕДАГУЙТЕ ЦЕЙ ФАЙЛ!
4141 *
4242 * Якщо необхідно змінити переклад окремих частин інтерфейсу,

Status & tagging log