* @ingroup Maintenance
*/
+require_once __DIR__ . '/Maintenance.php';
+
use MediaWiki\Linker\LinkTarget;
use MediaWiki\MediaWikiServices;
-
-require_once __DIR__ . '/Maintenance.php';
+use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\IMaintainableDatabase;
/**
* Maintenance script that checks for articles to fix after
class NamespaceConflictChecker extends Maintenance {
/**
- * @var Database
+ * @var IMaintainableDatabase
*/
protected $db;
$ok = true;
foreach ( $targets as $row ) {
-
// Find the new title and determine the action to take
$newTitle = $this->getDestinationTitle( $ns, $name,
/**
* Get the preferred destination title for a given target page.
- * @param integer $ns The destination namespace ID
+ * @param int $ns The destination namespace ID
* @param string $name The conflicting prefix
- * @param integer $sourceNs The source namespace
- * @param integer $sourceDbk The source DB key (i.e. page_title)
+ * @param int $sourceNs The source namespace
+ * @param int $sourceDbk The source DB key (i.e. page_title)
* @param array $options Associative array of validated command-line options
* @return Title|false
*/
/**
* Merge page histories
*
- * @param integer $id The page_id
+ * @param stdClass $row Page row
* @param Title $newTitle The new title
* @return bool
*/