original_string: public static function cancelAllNonPersistent()
      {
          foreach (static::getAllNotifications() as $id => $notification) {
              if (Notification::TYPE_PERSISTENT != $notification->type) {
                  static::removeNotification($id);
              }
          }
      }
code: public static function cancelAllNonPersistent()
      {
          foreach (static::getAllNotifications() as $id => $notification) {
              if (Notification::TYPE_PERSISTENT != $notification->type) {
                  static::removeNotification($id);
              }
          }
      }
code_tokens: public static function cancelAllNonPersistent ( ) { foreach ( static :: getAllNotifications ( ) as $ id => $ notification ) { if ( Notification :: TYPE_PERSISTENT != $ notification -> type ) { static :: removeNotification ( $ id ) ; } } }
docstring: Removes all temporary notifications.
  
  Call this method after the notifications have been
  displayed to make sure temporary notifications won't be displayed twice.
docstring_tokens: Removes all temporary notifications .