original_string: protected function prepareProcessBuilder()
      {
          $pb = new ProcessBuilder();
          $pb->inheritEnvironmentVariables();
  
          if ($this->sudo) {
              $pb->add('sudo');
          }
          $pb->add($this->bin);
          if ($this->config) {
              $pb->add('--config')
                  ->add($this->config);
          }
  
          $pb->add('--rotate');
  
          return $pb;
      }
code: protected function prepareProcessBuilder()
      {
          $pb = new ProcessBuilder();
          $pb->inheritEnvironmentVariables();
  
          if ($this->sudo) {
              $pb->add('sudo');
          }
          $pb->add($this->bin);
          if ($this->config) {
              $pb->add('--config')
                  ->add($this->config);
          }
  
          $pb->add('--rotate');
  
          return $pb;
      }
code_tokens: protected function prepareProcessBuilder ( ) { $ pb = new ProcessBuilder ( ) ; $ pb -> inheritEnvironmentVariables ( ) ; if ( $ this -> sudo ) { $ pb -> add ( 'sudo' ) ; } $ pb -> add ( $ this -> bin ) ; if ( $ this -> config ) { $ pb -> add ( '--config' ) -> add ( $ this -> config ) ; } $ pb -> add ( '--rotate' ) ; return $ pb ; }
docstring: Prepare process builder
  
  @return ProcessBuilder
docstring_tokens: Prepare process builder