@@ -235,8 +235,8 @@ discard block |
||
235 | 235 | private function exportRules(): string |
236 | 236 | { |
237 | 237 | $header = ['user_id', 'rule_id', 'row_contains', 'created_at', 'updated_at', 'group_id', 'group_name', 'title', 'description', 'order', 'active', |
238 | - 'stop_processing', 'strict', 'trigger_type', 'trigger_value', 'trigger_order', 'trigger_active', 'trigger_stop_processing', 'action_type', |
|
239 | - 'action_value', 'action_order', 'action_active', 'action_stop_processing',]; |
|
238 | + 'stop_processing', 'strict', 'trigger_type', 'trigger_value', 'trigger_order', 'trigger_active', 'trigger_stop_processing', 'action_type', |
|
239 | + 'action_value', 'action_order', 'action_active', 'action_stop_processing',]; |
|
240 | 240 | $ruleRepos = app(RuleRepositoryInterface::class); |
241 | 241 | $ruleRepos->setUser($this->user); |
242 | 242 | $rules = $ruleRepos->getAll(); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | private function exportAccounts(): string |
292 | 292 | { |
293 | 293 | $header = ['user_id', 'account_id', 'created_at', 'updated_at', 'type', 'name', 'virtual_balance', 'iban', 'number', 'active', 'currency_code', 'role', |
294 | - 'cc_type', 'cc_payment_date', 'in_net_worth', 'interest', 'interest_period',]; |
|
294 | + 'cc_type', 'cc_payment_date', 'in_net_worth', 'interest', 'interest_period',]; |
|
295 | 295 | /** @var AccountRepositoryInterface $repository */ |
296 | 296 | $repository = app(AccountRepositoryInterface::class); |
297 | 297 | $repository->setUser($this->user); |
@@ -654,12 +654,12 @@ discard block |
||
654 | 654 | { |
655 | 655 | // TODO better place for keys? |
656 | 656 | $header = ['user_id', 'group_id', 'journal_id', 'created_at', 'updated_at', 'group_title', 'type', 'amount', 'foreign_amount', 'currency_code', |
657 | - 'foreign_currency_code', 'description', 'date', 'source_name', 'source_iban', 'source_type', 'destination_name', 'destination_iban', |
|
658 | - 'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags',]; |
|
657 | + 'foreign_currency_code', 'description', 'date', 'source_name', 'source_iban', 'source_type', 'destination_name', 'destination_iban', |
|
658 | + 'destination_type', 'reconciled', 'category', 'budget', 'bill', 'tags',]; |
|
659 | 659 | $collector = app(GroupCollectorInterface::class); |
660 | 660 | $collector->setUser($this->user); |
661 | 661 | $collector->setRange($this->start, $this->end)->withAccountInformation()->withCategoryInformation()->withBillInformation() |
662 | - ->withBudgetInformation()->withTagInformation(); |
|
662 | + ->withBudgetInformation()->withTagInformation(); |
|
663 | 663 | $journals = $collector->getExtractedJournals(); |
664 | 664 | |
665 | 665 | $records = []; |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | if ('testing' === config('app.env')) { |
47 | 47 | Log::warning(sprintf('%s should not be instantiated in the TEST environment!', get_class($this))); |
48 | 48 | } |
49 | - if(auth()->check()) { |
|
49 | + if (auth()->check()) { |
|
50 | 50 | $this->user = auth()->user(); |
51 | 51 | } |
52 | 52 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | private function updateRuleActions(string $oldName, string $newName): void |
78 | 78 | { |
79 | - $types = ['set_category',]; |
|
79 | + $types = ['set_category', ]; |
|
80 | 80 | $actions = RuleAction::leftJoin('rules', 'rules.id', '=', 'rule_actions.rule_id') |
81 | 81 | ->where('rules.user_id', $this->user->id) |
82 | 82 | ->whereIn('rule_actions.action_type', $types) |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | private function updateRuleTriggers(string $oldName, string $newName): void |
99 | 99 | { |
100 | - $types = ['category_is',]; |
|
100 | + $types = ['category_is', ]; |
|
101 | 101 | $triggers = RuleTrigger::leftJoin('rules', 'rules.id', '=', 'rule_triggers.rule_id') |
102 | 102 | ->where('rules.user_id', $this->user->id) |
103 | 103 | ->whereIn('rule_triggers.trigger_type', $types) |