r105084 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105083‎ | r105084 | r105085 >
Date:22:00, 3 December 2011
Author:jeroendedauw
Status:reverted
Tags:
Comment:
docs++
Modified paths:
  • /trunk/extensions/Reviews/Reviews.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Reviews/Reviews.hooks.php
@@ -15,6 +15,7 @@
1616
1717 /**
1818 * Schema update to set up the needed database tables.
 19+ * @see https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates
1920 *
2021 * @since 0.1
2122 *
@@ -22,7 +23,7 @@
2324 *
2425 * @return true
2526 */
26 - public static function onSchemaUpdate( /* DatabaseUpdater */ $updater = null ) {
 27+ public static function onSchemaUpdate( DatabaseUpdater $updater ) {
2728 $updater->addExtensionUpdate( array(
2829 'addTable',
2930 'reviews',
@@ -35,6 +36,7 @@
3637
3738 /**
3839 * Hook to add PHPUnit test cases.
 40+ * @see https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList
3941 *
4042 * @since 0.1
4143 *
@@ -45,8 +47,6 @@
4648 public static function registerUnitTests( array &$files ) {
4749 $testDir = dirname( __FILE__ ) . '/test/';
4850
49 - //$files[] = $testDir . 'ContestValidationTests.php';
50 -
5151 return true;
5252 }
5353

Status & tagging log