@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | ->leftJoin('transaction_journals', 'tag_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id') |
467 | 467 | ->leftJoin('transactions', 'transaction_journals.id', '=', 'transactions.transaction_journal_id') |
468 | 468 | ->where( |
469 | - static function (Builder $query) { |
|
469 | + static function(Builder $query) { |
|
470 | 470 | $query->where('transactions.amount', '>', 0); |
471 | 471 | $query->orWhereNull('transactions.amount'); |
472 | 472 | } |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | $tagQuery->where('tags.date', '>=', $year . '-01-01 00:00:00')->where('tags.date', '<=', $year . '-12-31 23:59:59'); |
484 | 484 | } |
485 | 485 | |
486 | - return $tagQuery->get(['tags.id', 'tags.tag','tags.created_at', DB::raw('SUM(transactions.amount) as amount_sum')]); |
|
486 | + return $tagQuery->get(['tags.id', 'tags.tag', 'tags.created_at', DB::raw('SUM(transactions.amount) as amount_sum')]); |
|
487 | 487 | |
488 | 488 | } |
489 | 489 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | parent::__construct(); |
42 | 42 | app('view')->share('showCategory', true); |
43 | 43 | $this->middleware( |
44 | - static function ($request, $next) { |
|
44 | + static function($request, $next) { |
|
45 | 45 | app('view')->share('mainTitleIcon', 'fa-search'); |
46 | 46 | app('view')->share('title', (string)trans('firefly.search')); |
47 | 47 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $modifiers = $searcher->getModifiers(); |
69 | 69 | $subTitle = (string)trans('breadcrumbs.search_result', ['query' => $query]); |
70 | 70 | |
71 | - return view('search.index', compact('query', 'modifiers', 'page','fullQuery', 'subTitle')); |
|
71 | + return view('search.index', compact('query', 'modifiers', 'page', 'fullQuery', 'subTitle')); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -111,7 +111,7 @@ |
||
111 | 111 | ]; |
112 | 112 | |
113 | 113 | if ('liabilities' === $this->get('objectType')) { |
114 | - $rules['opening_balance'] = ['numeric', 'required','max:1000000000']; |
|
114 | + $rules['opening_balance'] = ['numeric', 'required', 'max:1000000000']; |
|
115 | 115 | $rules['opening_balance_date'] = 'date|required'; |
116 | 116 | } |
117 | 117 |