original_string: public static function getAllNotificationsToDisplay()
      {
          $notifications = static::getAllNotifications();
  
          uasort($notifications, function ($n1, $n2) {
              /** @var Notification $n1 */ /** @var Notification $n2 */
              if ($n1->getPriority() == $n2->getPriority()) {
                  return 0;
              }
  
              return $n1->getPriority() > $n2->getPriority() ? -1 : 1;
          });
  
          return $notifications;
      }
code: public static function getAllNotificationsToDisplay()
      {
          $notifications = static::getAllNotifications();
  
          uasort($notifications, function ($n1, $n2) {
              /** @var Notification $n1 */ /** @var Notification $n2 */
              if ($n1->getPriority() == $n2->getPriority()) {
                  return 0;
              }
  
              return $n1->getPriority() > $n2->getPriority() ? -1 : 1;
          });
  
          return $notifications;
      }
code_tokens: public static function getAllNotificationsToDisplay ( ) { $ notifications = static :: getAllNotifications ( ) ; uasort ( $ notifications , function ( $ n1 , $ n2 ) { /** @var Notification $n1 */ /** @var Notification $n2 */ if ( $ n1 -> getPriority ( ) == $ n2 -> getPriority ( ) ) { return 0 ; } return $ n1 -> getPriority ( ) > $ n2 -> getPriority ( ) ? - 1 : 1 ; } ) ; return $ notifications ; }
docstring: Determine all notifications that needs to be displayed. They are sorted by priority. Highest priorities first.
  @return \ArrayObject
docstring_tokens: Determine all notifications that needs to be displayed . They are sorted by priority . Highest priorities first .