original_string: public function disconnect() {
          if ($this->socket) {
              if (!fclose($this->socket)) {
                  throw new \Exception("Error while closing telnet socket");
              }
              $this->socket = NULL;
          }
          return true;
      }
code: public function disconnect() {
          if ($this->socket) {
              if (!fclose($this->socket)) {
                  throw new \Exception("Error while closing telnet socket");
              }
              $this->socket = NULL;
          }
          return true;
      }
code_tokens: public function disconnect ( ) { if ( $ this -> socket ) { if ( ! fclose ( $ this -> socket ) ) { throw new \ Exception ( "Error while closing telnet socket" ) ; } $ this -> socket = NULL ; } return true ; }
docstring: Closes IP socket
  
  @return boolean
docstring_tokens: Closes IP socket