original_string: public function close()
      {
          if (!$this->connected) {
              return false;
          }
  
          $this->connected = false;
          fclose($this->socket);
  
          return true;
      }
code: public function close()
      {
          if (!$this->connected) {
              return false;
          }
  
          $this->connected = false;
          fclose($this->socket);
  
          return true;
      }
code_tokens: public function close ( ) { if ( ! $ this -> connected ) { return false ; } $ this -> connected = false ; fclose ( $ this -> socket ) ; return true ; }
docstring: Closes the socket.
  
  @return boolean
docstring_tokens: Closes the socket .