mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +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
|
||||
*/
|
||||
public static function getNotificationEligibility( $user, $notificationType ) {
|
||||
$category = EchoNotificationController::getNotificationCategory( $notificationType );
|
||||
return EchoNotificationController::getCategoryEligibility( $user, $category );
|
||||
$category = self::getNotificationCategory( $notificationType );
|
||||
return self::getCategoryEligibility( $user, $category );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,7 +75,7 @@ class EchoNotificationController {
|
|||
* @return integer From 1 to 10 (10 is default)
|
||||
*/
|
||||
public static function getNotificationPriority( $notificationType ) {
|
||||
$category = $this->getNotificationCategory( $notificationType );
|
||||
$category = self::getNotificationCategory( $notificationType );
|
||||
return EchoNotificationController::getCategoryPriority( $category );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue