Using self for static methods

Change-Id: Iea3e7a7bdde9c7ac4d2da39edbc3bff80a68e4c6
This commit is contained in:
Kaldari 2013-03-07 12:48:14 -08:00
parent c253342de4
commit 8252026040

View file

@ -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 );
}