original_string: public function run()
      {
          foreach ($this->jobs as $job) {
              $this->worker->run($job);
          }
  
          while ($this->worker->isRunning()) {
              // waiting for worker to finish
          }
  
          // allow chaining
          return $this;
      }
code: public function run()
      {
          foreach ($this->jobs as $job) {
              $this->worker->run($job);
          }
  
          while ($this->worker->isRunning()) {
              // waiting for worker to finish
          }
  
          // allow chaining
          return $this;
      }
code_tokens: public function run ( ) { foreach ( $ this -> jobs as $ job ) { $ this -> worker -> run ( $ job ) ; } while ( $ this -> worker -> isRunning ( ) ) { // waiting for worker to finish } // allow chaining return $ this ; }
docstring: run all jobs using the worker
  
  @return self
docstring_tokens: run all jobs using the worker