original_string: public function disconnect()
      {
          if (!is_resource($this->connection)) {
              $this->connected = false;
  
              return true;
          }
          $this->connected = !fclose($this->connection);
  
          if (!$this->connected) {
              $this->connection = null;
          }
  
          return !$this->connected;
      }
code: public function disconnect()
      {
          if (!is_resource($this->connection)) {
              $this->connected = false;
  
              return true;
          }
          $this->connected = !fclose($this->connection);
  
          if (!$this->connected) {
              $this->connection = null;
          }
  
          return !$this->connected;
      }
code_tokens: public function disconnect ( ) { if ( ! is_resource ( $ this -> connection ) ) { $ this -> connected = false ; return true ; } $ this -> connected = ! fclose ( $ this -> connection ) ; if ( ! $ this -> connected ) { $ this -> connection = null ; } return ! $ this -> connected ; }
docstring: Disconnect the socket from the current connection.
  
  @return bool Success
docstring_tokens: Disconnect the socket from the current connection .