@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->app->bind( |
48 | 48 | RuleGroupRepositoryInterface::class, |
49 | - function (Application $app) { |
|
49 | + function(Application $app) { |
|
50 | 50 | /** @var RuleGroupRepository $repository */ |
51 | 51 | $repository = app(RuleGroupRepository::class); |
52 | 52 | if ($app->auth->check()) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->app->bind( |
47 | 47 | CurrencyRepositoryInterface::class, |
48 | - function (Application $app) { |
|
48 | + function(Application $app) { |
|
49 | 49 | /** @var CurrencyRepository $repository */ |
50 | 50 | $repository = app(CurrencyRepository::class); |
51 | 51 | if ($app->auth->check()) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->app->bind( |
47 | 47 | SearchInterface::class, |
48 | - function (Application $app) { |
|
48 | + function(Application $app) { |
|
49 | 49 | /** @var Search $search */ |
50 | 50 | $search = app(Search::class); |
51 | 51 | if ($app->auth->check()) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | $this->app->bind( |
49 | 49 | PiggyBankRepositoryInterface::class, |
50 | - function (Application $app) { |
|
50 | + function(Application $app) { |
|
51 | 51 | /** @var PiggyBankRepository $repository */ |
52 | 52 | $repository = app(PiggyBankRepository::class); |
53 | 53 | if ($app->auth->check()) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->app->bind( |
47 | 47 | AttachmentRepositoryInterface::class, |
48 | - function (Application $app) { |
|
48 | + function(Application $app) { |
|
49 | 49 | /** @var AttachmentRepositoryInterface $repository */ |
50 | 50 | $repository = app(AttachmentRepository::class); |
51 | 51 | if ($app->auth->check()) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->app->bind( |
47 | 47 | RuleRepositoryInterface::class, |
48 | - function (Application $app) { |
|
48 | + function(Application $app) { |
|
49 | 49 | /** @var RuleRepository $repository */ |
50 | 50 | $repository = app(RuleRepository::class); |
51 | 51 | if ($app->auth->check()) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->app->bind( |
47 | 47 | BillRepositoryInterface::class, |
48 | - function (Application $app) { |
|
48 | + function(Application $app) { |
|
49 | 49 | /** @var BillRepositoryInterface $repository */ |
50 | 50 | $repository = app(BillRepository::class); |
51 | 51 |
@@ -83,12 +83,12 @@ |
||
83 | 83 | $q->orWhereNull('startdate'); |
84 | 84 | } |
85 | 85 | ) |
86 | - ->where( |
|
87 | - function (EloquentBuilder $q) use ($date) { |
|
88 | - $q->where('targetdate', '>=', $date->format('Y-m-d 00:00:00')); |
|
89 | - $q->orWhereNull('targetdate'); |
|
90 | - } |
|
91 | - ); |
|
86 | + ->where( |
|
87 | + function (EloquentBuilder $q) use ($date) { |
|
88 | + $q->where('targetdate', '>=', $date->format('Y-m-d 00:00:00')); |
|
89 | + $q->orWhereNull('targetdate'); |
|
90 | + } |
|
91 | + ); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -83,13 +83,13 @@ |
||
83 | 83 | public function scopeRelevantOnDate(EloquentBuilder $query, Carbon $date) |
84 | 84 | { |
85 | 85 | return $query->where( |
86 | - function (EloquentBuilder $q) use ($date) { |
|
86 | + function(EloquentBuilder $q) use ($date) { |
|
87 | 87 | $q->where('startdate', '<=', $date->format('Y-m-d 00:00:00')); |
88 | 88 | $q->orWhereNull('startdate'); |
89 | 89 | } |
90 | 90 | ) |
91 | 91 | ->where( |
92 | - function (EloquentBuilder $q) use ($date) { |
|
92 | + function(EloquentBuilder $q) use ($date) { |
|
93 | 93 | $q->where('targetdate', '>=', $date->format('Y-m-d 00:00:00')); |
94 | 94 | $q->orWhereNull('targetdate'); |
95 | 95 | } |
@@ -71,8 +71,8 @@ |
||
71 | 71 | if (auth()->check()) { |
72 | 72 | $piggyBankId = (int)$value; |
73 | 73 | $piggyBank = self::where('piggy_banks.id', $piggyBankId) |
74 | - ->leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.account_id') |
|
75 | - ->where('accounts.user_id', auth()->user()->id)->first(['piggy_banks.*']); |
|
74 | + ->leftJoin('accounts', 'accounts.id', '=', 'piggy_banks.account_id') |
|
75 | + ->where('accounts.user_id', auth()->user()->id)->first(['piggy_banks.*']); |
|
76 | 76 | if (null !== $piggyBank) { |
77 | 77 | return $piggyBank; |
78 | 78 | } |