@@ -62,11 +62,11 @@ discard block |
||
62 | 62 | $errors = []; |
63 | 63 | |
64 | 64 | $items = array_get($response, 'items', []); |
65 | - foreach($items as $item) { |
|
65 | + foreach ($items as $item) { |
|
66 | 66 | |
67 | 67 | $item = array_first($item); |
68 | 68 | |
69 | - if(!array_has($item, 'error')) { |
|
69 | + if (!array_has($item, 'error')) { |
|
70 | 70 | continue; |
71 | 71 | } |
72 | 72 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $errorType, $errorReason, $causeType, $causeReason, $index, $type, $id); |
85 | 85 | } |
86 | 86 | |
87 | - if($errors) { |
|
87 | + if ($errors) { |
|
88 | 88 | $this->errors = array_merge($this->errors, $errors); |
89 | 89 | } |
90 | 90 | } |
@@ -98,10 +98,10 @@ |
||
98 | 98 | $bar->finish(); |
99 | 99 | |
100 | 100 | $hasErrors = $bulkResponseAggregator->hasErrors(); |
101 | - if($hasErrors) { |
|
101 | + if ($hasErrors) { |
|
102 | 102 | $this->info("\n"); |
103 | 103 | $errors = $bulkResponseAggregator->getErrors(); |
104 | - foreach($errors as $error) { |
|
104 | + foreach ($errors as $error) { |
|
105 | 105 | $this->error($error); |
106 | 106 | } |
107 | 107 | } |