@@ -161,7 +161,7 @@ |
||
161 | 161 | } |
162 | 162 | } |
163 | 163 | |
164 | - $entry = [ |
|
164 | + $entry = [ |
|
165 | 165 | 'type' => $type, |
166 | 166 | 'date' => $transaction->getMadeOn()->format('Y-m-d'), |
167 | 167 | 'tags' => $tags, |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | break; |
87 | 87 | case 'PUT': |
88 | 88 | case 'PATCH': |
89 | - $bill = $this->route()->parameter('bill'); |
|
89 | + $bill = $this->route()->parameter('bill'); |
|
90 | 90 | $rules['name'] .= ',' . $bill->id; |
91 | 91 | break; |
92 | 92 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | public function withValidator(Validator $validator): void |
105 | 105 | { |
106 | 106 | $validator->after( |
107 | - function (Validator $validator) { |
|
107 | + function(Validator $validator) { |
|
108 | 108 | $data = $validator->getData(); |
109 | 109 | $min = (float)($data['amount_min'] ?? 0); |
110 | 110 | $max = (float)($data['amount_max'] ?? 0); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | parent::__construct(); |
52 | 52 | |
53 | 53 | $this->middleware( |
54 | - function ($request, $next) { |
|
54 | + function($request, $next) { |
|
55 | 55 | app('view')->share('mainTitleIcon', 'fa-archive'); |
56 | 56 | app('view')->share('title', (string)trans('firefly.import_index_title')); |
57 | 57 | $this->repository = app(ImportJobRepositoryInterface::class); |
@@ -166,13 +166,13 @@ |
||
166 | 166 | /** @var LaravelResponse $response */ |
167 | 167 | $response = response($result); |
168 | 168 | $response->header('Content-disposition', 'attachment; filename=' . $name) |
169 | - ->header('Content-Type', 'application/json') |
|
170 | - ->header('Content-Description', 'File Transfer') |
|
171 | - ->header('Connection', 'Keep-Alive') |
|
172 | - ->header('Expires', '0') |
|
173 | - ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
174 | - ->header('Pragma', 'public') |
|
175 | - ->header('Content-Length', \strlen($result)); |
|
169 | + ->header('Content-Type', 'application/json') |
|
170 | + ->header('Content-Description', 'File Transfer') |
|
171 | + ->header('Connection', 'Keep-Alive') |
|
172 | + ->header('Expires', '0') |
|
173 | + ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') |
|
174 | + ->header('Pragma', 'public') |
|
175 | + ->header('Content-Length', \strlen($result)); |
|
176 | 176 | |
177 | 177 | return $response; |
178 | 178 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | Validator::resolver( |
92 | 92 | /** @noinspection MoreThanThreeArgumentsInspection */ |
93 | - function ($translator, $data, $rules, $messages) { |
|
93 | + function($translator, $data, $rules, $messages) { |
|
94 | 94 | return new FireflyValidator($translator, $data, $rules, $messages); |
95 | 95 | } |
96 | 96 | ); |
@@ -116,39 +116,39 @@ discard block |
||
116 | 116 | { |
117 | 117 | $this->app->bind( |
118 | 118 | 'preferences', |
119 | - function () { |
|
119 | + function() { |
|
120 | 120 | return new Preferences; |
121 | 121 | } |
122 | 122 | ); |
123 | 123 | |
124 | 124 | $this->app->bind( |
125 | 125 | 'fireflyconfig', |
126 | - function () { |
|
126 | + function() { |
|
127 | 127 | return new FireflyConfig; |
128 | 128 | } |
129 | 129 | ); |
130 | 130 | $this->app->bind( |
131 | 131 | 'navigation', |
132 | - function () { |
|
132 | + function() { |
|
133 | 133 | return new Navigation; |
134 | 134 | } |
135 | 135 | ); |
136 | 136 | $this->app->bind( |
137 | 137 | 'amount', |
138 | - function () { |
|
138 | + function() { |
|
139 | 139 | return new Amount; |
140 | 140 | } |
141 | 141 | ); |
142 | 142 | |
143 | 143 | $this->app->bind( |
144 | 144 | 'steam', |
145 | - function () { |
|
145 | + function() { |
|
146 | 146 | return new Steam; |
147 | 147 | } |
148 | 148 | ); |
149 | 149 | $this->app->bind( |
150 | 150 | 'expandedform', |
151 | - function () { |
|
151 | + function() { |
|
152 | 152 | return new ExpandedForm; |
153 | 153 | } |
154 | 154 | ); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | // chart builder |
160 | 160 | $this->app->bind( |
161 | 161 | MetaPieChartInterface::class, |
162 | - function (Application $app) { |
|
162 | + function(Application $app) { |
|
163 | 163 | /** @var MetaPieChart $chart */ |
164 | 164 | $chart = app(MetaPieChart::class); |
165 | 165 | if ($app->auth->check()) { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | try { |
82 | 82 | $content = Crypt::decrypt($this->uploadDisk->get(sprintf('at-%d.data', $attachment->id))); |
83 | - } catch (DecryptException|FileNotFoundException $e) { |
|
83 | + } catch (DecryptException | FileNotFoundException $e) { |
|
84 | 84 | Log::error(sprintf('Could not decrypt data of attachment #%d: %s', $attachment->id, $e->getMessage())); |
85 | 85 | $content = ''; |
86 | 86 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | app('view')->share('hideBudgets', true); |
57 | 57 | |
58 | 58 | $this->middleware( |
59 | - function ($request, $next) { |
|
59 | + function($request, $next) { |
|
60 | 60 | app('view')->share('title', (string)trans('firefly.budgets')); |
61 | 61 | app('view')->share('mainTitleIcon', 'fa-tasks'); |
62 | 62 | $this->repository = app(BudgetRepositoryInterface::class); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $suggested = $earnedAverage; |
185 | 185 | } |
186 | 186 | |
187 | - $result = ['available' => $available, 'earned' => $earnedAverage, 'spent' => $spentAverage, 'suggested' => $suggested,]; |
|
187 | + $result = ['available' => $available, 'earned' => $earnedAverage, 'spent' => $spentAverage, 'suggested' => $suggested, ]; |
|
188 | 188 | |
189 | 189 | return view('budgets.info', compact('result', 'searchBegin', 'searchEnd', 'start', 'end')); |
190 | 190 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @var TransactionCurrency $currency |
187 | 187 | */ |
188 | 188 | foreach ($currencies as $currencyId => $currency) { |
189 | - $dataSet = [ |
|
189 | + $dataSet = [ |
|
190 | 190 | 'label' => (string)trans('firefly.spent'), |
191 | 191 | 'type' => 'bar', |
192 | 192 | 'currency_symbol' => $currency->symbol, |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | $cache->addProperty($accounts->pluck('id')->toArray()); |
230 | 230 | $cache->addProperty($category); |
231 | 231 | if ($cache->has()) { |
232 | - return response()->json($cache->get());// @codeCoverageIgnore |
|
232 | + return response()->json($cache->get()); // @codeCoverageIgnore |
|
233 | 233 | } |
234 | 234 | $repository = app(CategoryRepositoryInterface::class); |
235 | 235 | $expenses = $repository->periodExpenses(new Collection([$category]), $accounts, $start, $end); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | 'identifier' => $data['identifier'], |
149 | 149 | ] |
150 | 150 | ); |
151 | - $dest = $this->create( |
|
151 | + $dest = $this->create( |
|
152 | 152 | [ |
153 | 153 | 'description' => $data['description'], |
154 | 154 | 'amount' => app('steam')->positive((string)$data['amount']), |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** @var AccountRepositoryInterface $accountRepository */ |
42 | 42 | $accountRepository = app(AccountRepositoryInterface::class); |
43 | 43 | $set = $accountRepository->getAccountsByType( |
44 | - [AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::CREDITCARD, AccountType::MORTGAGE,] |
|
44 | + [AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::CREDITCARD, AccountType::MORTGAGE, ] |
|
45 | 45 | ); |
46 | 46 | $list = []; |
47 | 47 |