original_string: public function rotateAll()
      {
          $pb = $this->prepareProcessBuilder();
          $pb->add('--all');
  
          $indexer = $pb->getProcess();
          $indexer->run();
  
          if (strstr($indexer->getOutput(), 'FATAL:') || strstr($indexer->getOutput(), 'ERROR:')) {
              throw new \RuntimeException(sprintf('Error rotating indexes: "%s".', rtrim($indexer->getOutput())));
          }
  
      }
code: public function rotateAll()
      {
          $pb = $this->prepareProcessBuilder();
          $pb->add('--all');
  
          $indexer = $pb->getProcess();
          $indexer->run();
  
          if (strstr($indexer->getOutput(), 'FATAL:') || strstr($indexer->getOutput(), 'ERROR:')) {
              throw new \RuntimeException(sprintf('Error rotating indexes: "%s".', rtrim($indexer->getOutput())));
          }
  
      }
code_tokens: public function rotateAll ( ) { $ pb = $ this -> prepareProcessBuilder ( ) ; $ pb -> add ( '--all' ) ; $ indexer = $ pb -> getProcess ( ) ; $ indexer -> run ( ) ; if ( strstr ( $ indexer -> getOutput ( ) , 'FATAL:' ) || strstr ( $ indexer -> getOutput ( ) , 'ERROR:' ) ) { throw new \ RuntimeException ( sprintf ( 'Error rotating indexes: "%s".' , rtrim ( $ indexer -> getOutput ( ) ) ) ) ; } }
docstring: Rebuild and rotate all indexes.
docstring_tokens: Rebuild and rotate all indexes .