original_string: public function submit($job)
      {
          $this->delete($job['id']);
  
          if (!empty($job['log']['errors'])) {
              file_put_contents($job['log']['errors'], '');
          }
  
          $this->set($job);
          $this->url->redirect('', array('job_id' => $job['id']));
      }
code: public function submit($job)
      {
          $this->delete($job['id']);
  
          if (!empty($job['log']['errors'])) {
              file_put_contents($job['log']['errors'], '');
          }
  
          $this->set($job);
          $this->url->redirect('', array('job_id' => $job['id']));
      }
code_tokens: public function submit ( $ job ) { $ this -> delete ( $ job [ 'id' ] ) ; if ( ! empty ( $ job [ 'log' ] [ 'errors' ] ) ) { file_put_contents ( $ job [ 'log' ] [ 'errors' ] , '' ) ; } $ this -> set ( $ job ) ; $ this -> url -> redirect ( '' , array ( 'job_id' => $ job [ 'id' ] ) ) ; }
docstring: Submits a new job
  @param array $job
docstring_tokens: Submits a new job