Passed
Push — master ( d550a6...996863 )
by James
24:09 queued 11:56
created
app/Repositories/Tag/TagRepository.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -462,16 +462,16 @@
 block discarded – undo
462 462
     {
463 463
         // get all tags in the year (if present):
464 464
         $tagQuery = $this->user->tags()
465
-                               ->leftJoin('tag_transaction_journal', 'tag_transaction_journal.tag_id', '=', 'tags.id')
466
-                               ->leftJoin('transaction_journals', 'tag_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id')
467
-                               ->leftJoin('transactions', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
468
-                               ->where(
469
-                                   static function (Builder $query) {
470
-                                       $query->where('transactions.amount', '>', 0);
471
-                                       $query->orWhereNull('transactions.amount');
472
-                                   }
473
-                               )
474
-                               ->groupBy(['tags.id', 'tags.tag', 'tags.created_at']);
465
+                                ->leftJoin('tag_transaction_journal', 'tag_transaction_journal.tag_id', '=', 'tags.id')
466
+                                ->leftJoin('transaction_journals', 'tag_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id')
467
+                                ->leftJoin('transactions', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
468
+                                ->where(
469
+                                    static function (Builder $query) {
470
+                                        $query->where('transactions.amount', '>', 0);
471
+                                        $query->orWhereNull('transactions.amount');
472
+                                    }
473
+                                )
474
+                                ->groupBy(['tags.id', 'tags.tag', 'tags.created_at']);
475 475
 
476 476
         // add date range (or not):
477 477
         if (null === $year) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Controllers/SearchController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
app/Http/Requests/AccountFormRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.