wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/MaintenanceShellStart.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

use MediaWiki\MediaWikiServices;
use Wikibase\Repo\WikibaseRepo;

// phpcs:disable Squiz.Functions.GlobalFunction.Found
// phpcs:disable MediaWiki.Commenting.FunctionComment.MissingReturn
// phpcs:disable MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix

if ( !function_exists( 'mws' ) ) {
    /** @phan-suppress-next-line PhanRedefineFunction guarded by function_exists */
    function mws() {
        return MediaWikiServices::getInstance();
    }
}

class_alias( WikibaseRepo::class, 'wbr' );