original_string: public function pdo()
      {
          if (!empty($this->pdo)) {
              return $this->pdo;
          }
  
          $dns = "{$this->driver}:";
          if (!empty($this->database)) {
              $dns .= "dbname={$this->database};";
          }
          if (!empty($this->hostname)) {
              $dns .= "host={$this->hostname};";
          }
          if (!empty($this->port)) {
              $dns .= "port={$this->port};";
          }
  
          $this->pdo = new \PDO($dns, $this->username, $this->password);
          return $this->pdo;
      }
code: public function pdo()
      {
          if (!empty($this->pdo)) {
              return $this->pdo;
          }
  
          $dns = "{$this->driver}:";
          if (!empty($this->database)) {
              $dns .= "dbname={$this->database};";
          }
          if (!empty($this->hostname)) {
              $dns .= "host={$this->hostname};";
          }
          if (!empty($this->port)) {
              $dns .= "port={$this->port};";
          }
  
          $this->pdo = new \PDO($dns, $this->username, $this->password);
          return $this->pdo;
      }
code_tokens: public function pdo ( ) { if ( ! empty ( $ this -> pdo ) ) { return $ this -> pdo ; } $ dns = "{$this->driver}:" ; if ( ! empty ( $ this -> database ) ) { $ dns .= "dbname={$this->database};" ; } if ( ! empty ( $ this -> hostname ) ) { $ dns .= "host={$this->hostname};" ; } if ( ! empty ( $ this -> port ) ) { $ dns .= "port={$this->port};" ; } $ this -> pdo = new \ PDO ( $ dns , $ this -> username , $ this -> password ) ; return $ this -> pdo ; }
docstring: get raw pdo
docstring_tokens: get raw pdo