mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-14 11:16:16 +00:00
Using self for static methods
Change-Id: Iea3e7a7bdde9c7ac4d2da39edbc3bff80a68e4c6
This commit is contained in:
parent
c253342de4
commit
8252026040
|
@ -44,8 +44,8 @@ class EchoNotificationController {
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public static function getNotificationEligibility( $user, $notificationType ) {
|
public static function getNotificationEligibility( $user, $notificationType ) {
|
||||||
$category = EchoNotificationController::getNotificationCategory( $notificationType );
|
$category = self::getNotificationCategory( $notificationType );
|
||||||
return EchoNotificationController::getCategoryEligibility( $user, $category );
|
return self::getCategoryEligibility( $user, $category );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,7 +75,7 @@ class EchoNotificationController {
|
||||||
* @return integer From 1 to 10 (10 is default)
|
* @return integer From 1 to 10 (10 is default)
|
||||||
*/
|
*/
|
||||||
public static function getNotificationPriority( $notificationType ) {
|
public static function getNotificationPriority( $notificationType ) {
|
||||||
$category = $this->getNotificationCategory( $notificationType );
|
$category = self::getNotificationCategory( $notificationType );
|
||||||
return EchoNotificationController::getCategoryPriority( $category );
|
return EchoNotificationController::getCategoryPriority( $category );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue