From aa6d425fedf1ac08ff27635d0b2d684a59d6c77d Mon Sep 17 00:00:00 2001 From: Frank Kessler Date: Wed, 14 Sep 2016 05:48:09 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/Bulk.php | 2 +- src/Salesforce.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bulk.php b/src/Bulk.php index 4ed279d..12d5964 100644 --- a/src/Bulk.php +++ b/src/Bulk.php @@ -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())); } diff --git a/src/Salesforce.php b/src/Salesforce.php index d386e41..72bd6c4 100644 --- a/src/Salesforce.php +++ b/src/Salesforce.php @@ -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);