|
4 | 4 |
|
5 | 5 | use Frankkessler\Salesforce\Client\BulkClient;
|
6 | 6 | use Frankkessler\Salesforce\DataObjects\BinaryBatch;
|
7 |
| -use Frankkessler\Salesforce\Interfaces\BulkBatchProcessorInterface; |
8 | 7 | use Frankkessler\Salesforce\Responses\Bulk\BulkBatchResponse;
|
9 | 8 | use Frankkessler\Salesforce\Responses\Bulk\BulkBatchResultResponse;
|
10 | 9 | use Frankkessler\Salesforce\Responses\Bulk\BulkJobResponse;
|
@@ -46,7 +45,7 @@ public function runBatch($operation, $objectType, $data, $options = [])
|
46 | 45 | 'isBatchedResult' => false,
|
47 | 46 | 'concurrencyMode' => 'Parallel',
|
48 | 47 | 'Sforce-Enable-PKChunking' => false,
|
49 |
| - 'batchProcessor' => null, |
| 48 | + 'batchProcessor' => null, |
50 | 49 | ];
|
51 | 50 |
|
52 | 51 | $options = array_replace($defaults, $options);
|
@@ -93,9 +92,9 @@ public function runBatch($operation, $objectType, $data, $options = [])
|
93 | 92 | if (in_array($batch->state, ['Completed', 'Failed', 'Not Processed', 'NotProcessed'])) {
|
94 | 93 | if (in_array($batch->state, ['Completed'])) {
|
95 | 94 | $batchResult = $this->batchResult($job->id, $batch->id, $options['isBatchedResult'], null, $options['contentType']);
|
96 |
| - if(class_exists($options['batchProcessor']) && class_implements($options['batchProcessor'], '\Frankkessler\Salesforce\Interfaces\BulkBatchProcessorInterface')){ |
| 95 | + if (class_exists($options['batchProcessor']) && class_implements($options['batchProcessor'], '\Frankkessler\Salesforce\Interfaces\BulkBatchProcessorInterface')) { |
97 | 96 | call_user_func([$options['batchProcessor'], 'process'], $batchResult);
|
98 |
| - }else { |
| 97 | + } else { |
99 | 98 | $batch->records = $batchResult->records;
|
100 | 99 | }
|
101 | 100 | }
|
|
0 commit comments