@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | protected function mapApiRoutes(): void |
69 | 69 | { |
70 | 70 | Route::prefix('api') |
71 | - ->middleware('api') |
|
72 | - ->namespace($this->namespace) |
|
73 | - ->group(base_path('routes/api.php')); |
|
71 | + ->middleware('api') |
|
72 | + ->namespace($this->namespace) |
|
73 | + ->group(base_path('routes/api.php')); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | protected function mapWebRoutes(): void |
84 | 84 | { |
85 | 85 | Route::middleware('web') |
86 | - ->namespace($this->namespace) |
|
87 | - ->group(base_path('routes/web.php')); |
|
86 | + ->namespace($this->namespace) |
|
87 | + ->group(base_path('routes/web.php')); |
|
88 | 88 | } |
89 | 89 | } |
@@ -291,7 +291,7 @@ |
||
291 | 291 | */ |
292 | 292 | private function cleanString(string $string): string |
293 | 293 | { |
294 | - $search = [ |
|
294 | + $search = [ |
|
295 | 295 | "\u{0001}", // start of heading |
296 | 296 | "\u{0002}", // start of text |
297 | 297 | "\u{0003}", // end of text |
@@ -94,7 +94,7 @@ |
||
94 | 94 | public function withValidator(Validator $validator): void |
95 | 95 | { |
96 | 96 | $validator->after( |
97 | - static function (Validator $validator) { |
|
97 | + static function(Validator $validator) { |
|
98 | 98 | $data = $validator->getData(); |
99 | 99 | // if (!isset($data['accounts'])) { |
100 | 100 | // $validator->errors()->add( |
@@ -114,7 +114,7 @@ |
||
114 | 114 | ApiContextManager::getApiContext(); |
115 | 115 | } catch (ApiHttpException $e) { |
116 | 116 | $errorMessage = sprintf('bunq complained: %s', $e->getMessage()); |
117 | - $isError =true; |
|
117 | + $isError = true; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | if (false === $isError) { |
@@ -66,13 +66,13 @@ |
||
66 | 66 | $response = response($result); |
67 | 67 | $name = sprintf('bunq_import_config_%s.json', date('Y-m-d')); |
68 | 68 | $response->header('Content-disposition', 'attachment; filename=' . $name) |
69 | - ->header('Content-Type', 'application/json') |
|
70 | - ->header('Content-Description', 'File Transfer') |
|
71 | - ->header('Connection', 'Keep-Alive') |
|
72 | - ->header('Expires', '0') |
|
73 | - ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
74 | - ->header('Pragma', 'public') |
|
75 | - ->header('Content-Length', strlen($result)); |
|
69 | + ->header('Content-Type', 'application/json') |
|
70 | + ->header('Content-Description', 'File Transfer') |
|
71 | + ->header('Connection', 'Keep-Alive') |
|
72 | + ->header('Expires', '0') |
|
73 | + ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
74 | + ->header('Pragma', 'public') |
|
75 | + ->header('Content-Length', strlen($result)); |
|
76 | 76 | |
77 | 77 | return $response; |
78 | 78 | } |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $mapping = base64_encode(json_encode($configuration->getMapping(), JSON_THROW_ON_ERROR, 512)); |
139 | 139 | } |
140 | 140 | |
141 | - return view('import.configuration.index', compact('mainTitle', 'subTitle','ff3Accounts', 'combinedAccounts', 'configuration', 'bunqAccounts', 'mapping')); |
|
141 | + return view('import.configuration.index', compact('mainTitle', 'subTitle', 'ff3Accounts', 'combinedAccounts', 'configuration', 'bunqAccounts', 'mapping')); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
@@ -100,7 +100,7 @@ |
||
100 | 100 | // get sync ID so we have a separate track thing. |
101 | 101 | $syncIdentifier = session()->get(Constants::SYNC_JOB_IDENTIFIER); |
102 | 102 | |
103 | - $routine = new RoutineManager($syncIdentifier); |
|
103 | + $routine = new RoutineManager($syncIdentifier); |
|
104 | 104 | |
105 | 105 | // store identifier in session so the status can get it (should already be there) |
106 | 106 | session()->put(Constants::SYNC_JOB_IDENTIFIER, $syncIdentifier); |
@@ -162,7 +162,7 @@ |
||
162 | 162 | } |
163 | 163 | } |
164 | 164 | $filtered = array_filter( |
165 | - $opposing, static function (string $value) { |
|
165 | + $opposing, static function(string $value) { |
|
166 | 166 | return '' !== $value; |
167 | 167 | } |
168 | 168 | ); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $json = file_get_contents($file); |
44 | 44 | try { |
45 | 45 | $configuration = json_decode($json, true, 512, JSON_THROW_ON_ERROR); |
46 | - } catch (Exception|JsonException $e) { |
|
46 | + } catch (Exception | JsonException $e) { |
|
47 | 47 | $message = sprintf('The importer can\'t import: could not decode the JSON in the config file: %s', $e->getMessage()); |
48 | 48 | Log::error($message); |
49 | 49 |
@@ -120,7 +120,7 @@ |
||
120 | 120 | // download and store transactions from bunq. |
121 | 121 | try { |
122 | 122 | $transactions = $this->paymentList->getPaymentList(); |
123 | - } catch(ImportException $e) { |
|
123 | + } catch (ImportException $e) { |
|
124 | 124 | Log::error($e->getMessage()); |
125 | 125 | Log::error($e->getTraceAsString()); |
126 | 126 | } |