original_string: public static function add($thread)
      {
          if (Podium::getInstance()->user->isGuest) {
              return false;
          }
          $sub = new Subscription();
          $sub->thread_id = $thread;
          $sub->user_id = User::loggedId();
          $sub->post_seen = self::POST_SEEN;
          return $sub->save();
      }
code: public static function add($thread)
      {
          if (Podium::getInstance()->user->isGuest) {
              return false;
          }
          $sub = new Subscription();
          $sub->thread_id = $thread;
          $sub->user_id = User::loggedId();
          $sub->post_seen = self::POST_SEEN;
          return $sub->save();
      }
code_tokens: public static function add ( $ thread ) { if ( Podium :: getInstance ( ) -> user -> isGuest ) { return false ; } $ sub = new Subscription ( ) ; $ sub -> thread_id = $ thread ; $ sub -> user_id = User :: loggedId ( ) ; $ sub -> post_seen = self :: POST_SEEN ; return $ sub -> save ( ) ; }
docstring: Adds subscription for thread.
  @param int $thread thread ID
  @return bool
  @since 0.2
docstring_tokens: Adds subscription for thread .