Passed
Pull Request — develop (#115)
by
unknown
01:21
created
src/Documents/Bulk/BulkResponseAggregator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Console/IndexCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.