original_string: public function connectionString()
      {
          if (empty($this->username) || empty($this->password)) {
              return sprintf(
                  "mongodb://%s:%d/%s",
                  $this->host,
                  $this->port,
                  $this->db
              );
          }
          return sprintf(
              "mongodb://%s:%s@%s:%d/%s",
              $this->username,
              $this->password,
              $this->host,
              $this->port,
              $this->db
          );
      }
code: public function connectionString()
      {
          if (empty($this->username) || empty($this->password)) {
              return sprintf(
                  "mongodb://%s:%d/%s",
                  $this->host,
                  $this->port,
                  $this->db
              );
          }
          return sprintf(
              "mongodb://%s:%s@%s:%d/%s",
              $this->username,
              $this->password,
              $this->host,
              $this->port,
              $this->db
          );
      }
code_tokens: public function connectionString ( ) { if ( empty ( $ this -> username ) || empty ( $ this -> password ) ) { return sprintf ( "mongodb://%s:%d/%s" , $ this -> host , $ this -> port , $ this -> db ) ; } return sprintf ( "mongodb://%s:%s@%s:%d/%s" , $ this -> username , $ this -> password , $ this -> host , $ this -> port , $ this -> db ) ; }
docstring: Forms the connection String
  @return String
docstring_tokens: Forms the connection String