original_string: private function close($resource)
      {
          if (is_resource($resource)) {
              fclose($resource);
          }
  
          if (is_resource($this->process)) {
              proc_close($this->process);
              $this->process = null;
          }
  
          $this->stdin->close();
      }
code: private function close($resource)
      {
          if (is_resource($resource)) {
              fclose($resource);
          }
  
          if (is_resource($this->process)) {
              proc_close($this->process);
              $this->process = null;
          }
  
          $this->stdin->close();
      }
code_tokens: private function close ( $ resource ) { if ( is_resource ( $ resource ) ) { fclose ( $ resource ) ; } if ( is_resource ( $ this -> process ) ) { proc_close ( $ this -> process ) ; $ this -> process = null ; } $ this -> stdin -> close ( ) ; }
docstring: Closes the stream resource provided, the open process handle, and stdin.
  
  @param resource $resource
docstring_tokens: Closes the stream resource provided the open process handle and stdin .