Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Utils
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
6
0.00% covered (danger)
0.00%
0 / 1
 useCommunityConfiguration
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
6
1<?php
2
3namespace MediaWiki\Babel;
4
5use MediaWiki\MediaWikiServices;
6use MediaWiki\Registration\ExtensionRegistry;
7
8class Utils {
9
10    public static function useCommunityConfiguration(): bool {
11        return ExtensionRegistry::getInstance()->isLoaded( 'CommunityConfiguration' ) &&
12            MediaWikiServices::getInstance()->getMainConfig()->get( 'BabelUseCommunityConfiguration' );
13    }
14}