Passed
Push — master ( 4df141...b8bd7b )
by James
06:09 queued 16s
created
app/Http/Controllers/Import/ConfigurationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
             return redirect()->route('import.download.index');
102 102
         }
103 103
         // get list of asset accounts in Firefly III
104
-        $uri     = (string) config('bunq.uri');
105
-        $token   = (string) config('bunq.access_token');
104
+        $uri     = (string)config('bunq.uri');
105
+        $token   = (string)config('bunq.access_token');
106 106
         $request = new GetAccountsRequest($uri, $token);
107 107
         $request->setType(GetAccountsRequest::ASSET);
108 108
         $ff3Accounts = $request->get();
Please login to merge, or discard this patch.
app/Http/Controllers/Import/MappingController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function getFireflyIIIAccounts(): array
119 119
     {
120
-        $token   = (string) config('bunq.access_token');
121
-        $uri     = (string) config('bunq.uri');
120
+        $token   = (string)config('bunq.access_token');
121
+        $uri     = (string)config('bunq.uri');
122 122
         $request = new GetAccountsRequest($uri, $token);
123 123
         /** @var GetAccountsResponse $result */
124 124
         $result = $request->get();
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
             if ('reconciliation' === $type || 'initial-balance' === $type) {
129 129
                 continue;
130 130
             }
131
-            $id                 = (int) $entry->id;
131
+            $id                 = (int)$entry->id;
132 132
             $return[$type][$id] = $entry->name;
133
-            if ('' !== (string) $entry->iban) {
133
+            if ('' !== (string)$entry->iban) {
134 134
                 $return[$type][$id] = sprintf('%s (%s)', $entry->name, $entry->iban);
135 135
             }
136 136
         }
@@ -155,17 +155,17 @@  discard block
 block discarded – undo
155 155
         /** @var array $account */
156 156
         foreach ($array as $account) {
157 157
             foreach ($account as $entry) {
158
-                if ('' === trim((string) $entry['counter_party']['iban'])) {
158
+                if ('' === trim((string)$entry['counter_party']['iban'])) {
159 159
                     $opposing[] = trim($entry['counter_party']['display_name']);
160 160
                 }
161
-                if ('' !== trim((string) $entry['counter_party']['iban'])) {
161
+                if ('' !== trim((string)$entry['counter_party']['iban'])) {
162 162
                     $opposing[] = sprintf('%s (%s)', trim($entry['counter_party']['display_name']), trim($entry['counter_party']['iban']));
163 163
                 }
164 164
             }
165 165
         }
166 166
         $filtered = array_filter(
167 167
             $opposing,
168
-            static function (string $value) {
168
+            static function(string $value) {
169 169
                 return '' !== $value;
170 170
             }
171 171
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'BUNQ_API_URI'             => 'bunq.api_uri',
49 49
         ];
50 50
         foreach ($variables as $env => $config) {
51
-            $value = (string) config($config);
51
+            $value = (string)config($config);
52 52
             if ('' === $value) {
53 53
                 echo sprintf('Please set a valid value for "%s" in the env file.', $env);
54 54
                 app('artisan')->call('config:clear');
Please login to merge, or discard this patch.