original_string: public function getWidgetJob($job_model, $job = null)
      {
          if (!isset($job)) {
              $job = $job_model->get($this->getQuery('job_id', ''));
          }
  
          $rendered = '';
  
          if (!empty($job['status'])) {
              $job += array('widget' => 'common/job');
              $rendered = $this->render($job['widget'], array('job' => $job));
          }
  
          return $rendered;
      }
code: public function getWidgetJob($job_model, $job = null)
      {
          if (!isset($job)) {
              $job = $job_model->get($this->getQuery('job_id', ''));
          }
  
          $rendered = '';
  
          if (!empty($job['status'])) {
              $job += array('widget' => 'common/job');
              $rendered = $this->render($job['widget'], array('job' => $job));
          }
  
          return $rendered;
      }
code_tokens: public function getWidgetJob ( $ job_model , $ job = null ) { if ( ! isset ( $ job ) ) { $ job = $ job_model -> get ( $ this -> getQuery ( 'job_id' , '' ) ) ; } $ rendered = '' ; if ( ! empty ( $ job [ 'status' ] ) ) { $ job += array ( 'widget' => 'common/job' ) ; $ rendered = $ this -> render ( $ job [ 'widget' ] , array ( 'job' => $ job ) ) ; } return $ rendered ; }
docstring: Returns the rendered job widget
  @param \gplcart\core\models\Job $job_model
  @param null|array $job
  @return string
docstring_tokens: Returns the rendered job widget