original_string: private function _checkUserId($userId = null)
      {
          if (empty($userId) && $this->currentUser instanceof \Gems_User_User) {
              $userId = $this->currentUser->getUserId();
              if (0 === $userId) {
                  $userId = null;
              }
          }
          return $userId;
      }
code: private function _checkUserId($userId = null)
      {
          if (empty($userId) && $this->currentUser instanceof \Gems_User_User) {
              $userId = $this->currentUser->getUserId();
              if (0 === $userId) {
                  $userId = null;
              }
          }
          return $userId;
      }
code_tokens: private function _checkUserId ( $ userId = null ) { if ( empty ( $ userId ) && $ this -> currentUser instanceof \ Gems_User_User ) { $ userId = $ this -> currentUser -> getUserId ( ) ; if ( 0 === $ userId ) { $ userId = null ; } } return $ userId ; }
docstring: Replaces a null or empty userId with that of the current user
  
  @param int $userId
  @return int
docstring_tokens: Replaces a null or empty userId with that of the current user