Passed
Push — master ( a1768c...4df141 )
by James
03:30 queued 11s
created
app/Bunq/Requests/PaymentList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $bunqAccountId = (int)$bunqAccountId;
100 100
             try {
101 101
                 $return[$bunqAccountId] = $this->getForAccount($bunqAccountId);
102
-                $totalCount             += count($return[$bunqAccountId]);
102
+                $totalCount += count($return[$bunqAccountId]);
103 103
             } catch (ImportException $e) {
104 104
                 Log::error($e->getMessage());
105 105
                 Log::error($e->getTraceAsString());
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             return null;
260 260
         }
261 261
 
262
-        $transaction                                  = [
262
+        $transaction = [
263 263
             // TODO country, bunqMe, isLight, swiftBic, swiftAccountNumber, transferwiseAccountNumber, transferwiseBankCode
264 264
             // TODO merchantCategoryCode, bunqtoStatus, bunqtoSubStatus, bunqtoExpiry, bunqtoTimeResponded
265 265
             // TODO merchantReference, batchId, scheduledId, addressShipping, addressBilling, geolocation, allowChat,
Please login to merge, or discard this patch.
app/Services/Sync/ParseBunqDownload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
             try {
51 51
                 $this->addMessage(0, 'Decoded bunq download.');
52 52
                 $result = json_decode($disk->get($downloadIdentifier), true, 512, JSON_THROW_ON_ERROR);
53
-            } catch (FileNotFoundException|JsonException $e) {
53
+            } catch (FileNotFoundException | JsonException $e) {
54 54
                 $this->addError(0, 'Could not decode bunq download.');
55 55
             }
56 56
         }
57
-        foreach($result as $transactions) {
57
+        foreach ($result as $transactions) {
58 58
             $count += count($transactions);
59 59
         }
60 60
 
Please login to merge, or discard this patch.
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.