@@ -87,10 +87,10 @@ discard block |
||
| 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 |
||
| 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 | |