Skip to content

Commit 91a2877

Browse files
frankkesslerStyleCIBot
authored andcommitted
Applied fixes from StyleCI
1 parent 6edf123 commit 91a2877

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Bulk.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Frankkessler\Salesforce\Client\BulkClient;
66
use Frankkessler\Salesforce\DataObjects\BinaryBatch;
7-
use Frankkessler\Salesforce\Interfaces\BulkBatchProcessorInterface;
87
use Frankkessler\Salesforce\Responses\Bulk\BulkBatchResponse;
98
use Frankkessler\Salesforce\Responses\Bulk\BulkBatchResultResponse;
109
use Frankkessler\Salesforce\Responses\Bulk\BulkJobResponse;
@@ -46,7 +45,7 @@ public function runBatch($operation, $objectType, $data, $options = [])
4645
'isBatchedResult' => false,
4746
'concurrencyMode' => 'Parallel',
4847
'Sforce-Enable-PKChunking' => false,
49-
'batchProcessor' => null,
48+
'batchProcessor' => null,
5049
];
5150

5251
$options = array_replace($defaults, $options);
@@ -93,9 +92,9 @@ public function runBatch($operation, $objectType, $data, $options = [])
9392
if (in_array($batch->state, ['Completed', 'Failed', 'Not Processed', 'NotProcessed'])) {
9493
if (in_array($batch->state, ['Completed'])) {
9594
$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')) {
9796
call_user_func([$options['batchProcessor'], 'process'], $batchResult);
98-
}else {
97+
} else {
9998
$batch->records = $batchResult->records;
10099
}
101100
}

tests/BulkBatchProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ public static function process(BulkBatchResultResponse $batchResult)
1111
{
1212
static::$records = array_merge(static::$records, $batchResult->records);
1313
}
14-
}
14+
}

tests/BulkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function testRunPkChunkQueryBatchWithBatchProcessor()
295295

296296
$this->assertEquals(2, count(BulkBatchProcessor::$records));
297297

298-
foreach(BulkBatchProcessor::$records as $record){
298+
foreach (BulkBatchProcessor::$records as $record) {
299299
$this->assertEquals($firstAccountId, $record['Id']);
300300
break;
301301
}

0 commit comments

Comments
 (0)