Skip to content

Commit

Permalink
Merge pull request #11 from frankkessler/analysis-zOLGNk
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
frankkessler authored Sep 14, 2016
2 parents 195d609 + aa6d425 commit 6b98423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Bulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function runBatch($operation, $objectType, $data, $options = [])
for ($i = 1; $i <= $totalNumberOfBatches; $i++) {
$batches[] = $this->addBatch($job->id, array_splice($data, ($i - 1) * $options['batchSize'], $options['batchSize']));
}
}else{
} else {
$this->log('error', 'Job Failed: '.json_encode($job->toArrayAll()));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Salesforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function call_api($method, $url, $options = [], $debug_info = [])
}
} else {
$full_data = json_decode((string) $response->getBody(), true);
if(!is_array($full_data)){
if (!is_array($full_data)) {
$data = array_merge($data, ['message' => $full_data]);
} elseif (count($full_data) > 1) {
$data = array_merge($data, $full_data);
Expand Down

0 comments on commit 6b98423

Please sign in to comment.