Passed
Push — master ( 8b0ef9...a1768c )
by James
04:18 queued 11s
created
app/Services/Sync/SendTransactions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
             $this->addError($index, $e->getMessage());
88 88
             return [];
89 89
         }
90
-        if($response instanceof ValidationErrorResponse) {
90
+        if ($response instanceof ValidationErrorResponse) {
91 91
             /** ValidationErrorResponse $error */
92
-            foreach($response->errors->getMessages() as $key => $errors) {
93
-                foreach($errors as $error) {
92
+            foreach ($response->errors->getMessages() as $key => $errors) {
93
+                foreach ($errors as $error) {
94 94
                     // +1 so the line numbers match.
95 95
                     $this->addError($index + 1, $error);
96 96
                     Log::error(sprintf('Could not create transaction: %s', $error), $transaction);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         /** @var Transaction $tr */
113 113
         foreach ($group->transactions as $tr) {
114 114
             $this->addMessage(
115
-                $index+1, sprintf('Created transaction #%d: <a href="%s">%s</a> (%s %s)', $groupId, $groupUri, $tr->description, $tr->currencyCode, round($tr->amount,2))
115
+                $index + 1, sprintf('Created transaction #%d: <a href="%s">%s</a> (%s %s)', $groupId, $groupUri, $tr->description, $tr->currencyCode, round($tr->amount, 2))
116 116
             );
117 117
         }
118 118
 
Please login to merge, or discard this patch.