original_string: private function sendTERMSignal()
      {
          if (!$this->hasReceivedHUP) {
              $this->hasReceivedHUP = true;
              try {
                  $this->process->signal(SIGTERM);
              } catch (\Symfony\Component\Process\Exception\LogicException $e) {
                  //In case the process ends between checking and actually sending the signal
              }
          }
      }
code: private function sendTERMSignal()
      {
          if (!$this->hasReceivedHUP) {
              $this->hasReceivedHUP = true;
              try {
                  $this->process->signal(SIGTERM);
              } catch (\Symfony\Component\Process\Exception\LogicException $e) {
                  //In case the process ends between checking and actually sending the signal
              }
          }
      }
code_tokens: private function sendTERMSignal ( ) { if ( ! $ this -> hasReceivedHUP ) { $ this -> hasReceivedHUP = true ; try { $ this -> process -> signal ( SIGTERM ) ; } catch ( \ Symfony \ Component \ Process \ Exception \ LogicException $ e ) { //In case the process ends between checking and actually sending the signal } } }
docstring: Sends a signal to the process, this method prevents the signal from being sent twice
  
  @return void
docstring_tokens: Sends a signal to the process this method prevents the signal from being sent twice