original_string: protected function getResult(array $job, array $result = array())
      {
          $result += array(
              'done' => 0,
              'errors' => 0,
              'progress' => 0,
              'finish' => false,
              'message' => $job['message']['process']
          );
  
          if (!empty($result['finish'])) {
              $this->setFinishData($result, $job);
          }
  
          $this->setSession($job);
          return $result;
      }
code: protected function getResult(array $job, array $result = array())
      {
          $result += array(
              'done' => 0,
              'errors' => 0,
              'progress' => 0,
              'finish' => false,
              'message' => $job['message']['process']
          );
  
          if (!empty($result['finish'])) {
              $this->setFinishData($result, $job);
          }
  
          $this->setSession($job);
          return $result;
      }
code_tokens: protected function getResult ( array $ job , array $ result = array ( ) ) { $ result += array ( 'done' => 0 , 'errors' => 0 , 'progress' => 0 , 'finish' => false , 'message' => $ job [ 'message' ] [ 'process' ] ) ; if ( ! empty ( $ result [ 'finish' ] ) ) { $ this -> setFinishData ( $ result , $ job ) ; } $ this -> setSession ( $ job ) ; return $ result ; }
docstring: Returns an array of data to be send to the user
  @param array $job
  @param array $result
  @return array
docstring_tokens: Returns an array of data to be send to the user