mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
a79fd1624a
Phan now can run and pass without BetaFeatures extension beeing installed. Change-Id: I0bb8433fc9f882ff8e021785aba78f707cec00a1
20 lines
489 B
PHP
20 lines
489 B
PHP
<?php
|
|
|
|
/**
|
|
* Minimal set of classes necessary to fulfill needs of parts of the RevisionSlider relying on
|
|
* the BetaFeatures extension.
|
|
* @codingStandardsIgnoreFile
|
|
*/
|
|
|
|
class BetaFeatures {
|
|
/**
|
|
* Check if a user has a beta feature enabled.
|
|
*
|
|
* @param User $user The user to check
|
|
* @param string $feature The key passed back to BetaFeatures
|
|
* from the GetBetaFeaturePreferences hook
|
|
* @return bool
|
|
*/
|
|
public static function isFeatureEnabled( $user, $feature ) {
|
|
}
|
|
} |