original_string: public function isMod($userId = null)
      {
          if (in_array($userId ?: User::loggedId(), $this->getMods())) {
              return true;
          }
          return false;
      }
code: public function isMod($userId = null)
      {
          if (in_array($userId ?: User::loggedId(), $this->getMods())) {
              return true;
          }
          return false;
      }
code_tokens: public function isMod ( $ userId = null ) { if ( in_array ( $ userId ? : User :: loggedId ( ) , $ this -> getMods ( ) ) ) { return true ; } return false ; }
docstring: Checks if user is moderator for this forum.
  @param int|null $userId user ID or null for current signed in.
  @return bool
docstring_tokens: Checks if user is moderator for this forum .