mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Remove unnecessary setters.
This commit is contained in:
		| @@ -97,7 +97,6 @@ class ShowController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $accounts    = $enrichment->enrich($accounts); | ||||
| 
 | ||||
|         // make paginator:
 | ||||
| @@ -132,7 +131,6 @@ class ShowController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $account     = $enrichment->enrichSingle($account); | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| @@ -76,7 +76,6 @@ class StoreController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $account     = $enrichment->enrichSingle($account); | ||||
| 
 | ||||
|         /** @var AccountTransformer $transformer */ | ||||
|   | ||||
| @@ -81,7 +81,6 @@ class UpdateController extends Controller | ||||
|         $admin        = auth()->user(); | ||||
|         $enrichment   = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $account      = $enrichment->enrichSingle($account); | ||||
| 
 | ||||
|         /** @var AccountTransformer $transformer */ | ||||
|   | ||||
| @@ -83,8 +83,6 @@ class ShowController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bills       = $enrichment->enrich($bills); | ||||
| @@ -114,8 +112,6 @@ class ShowController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bill        = $enrichment->enrichSingle($bill); | ||||
|   | ||||
| @@ -79,8 +79,6 @@ class StoreController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bill        = $enrichment->enrichSingle($bill); | ||||
|   | ||||
| @@ -74,8 +74,6 @@ class UpdateController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bill        = $enrichment->enrichSingle($bill); | ||||
|   | ||||
| @@ -85,8 +85,6 @@ class ListController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bills       = $enrichment->enrich($bills); | ||||
|   | ||||
| @@ -84,7 +84,6 @@ class ListController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $accounts    = $enrichment->enrich($accounts); | ||||
| 
 | ||||
|         // make paginator:
 | ||||
|   | ||||
| @@ -108,7 +108,6 @@ class ListController extends Controller | ||||
|         $admin             = auth()->user(); | ||||
|         $enrichment        = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $accounts          = $enrichment->enrich($accounts); | ||||
| 
 | ||||
|         // make paginator:
 | ||||
| @@ -188,8 +187,6 @@ class ListController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new SubscriptionEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setConvertToPrimary($this->convertToPrimary); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $enrichment->setStart($this->parameters->get('start')); | ||||
|         $enrichment->setEnd($this->parameters->get('end')); | ||||
|         $bills       = $enrichment->enrichSingle($bills); | ||||
|   | ||||
| @@ -89,7 +89,6 @@ class AccountController extends Controller | ||||
|         $admin       = auth()->user(); | ||||
|         $enrichment  = new AccountEnrichment(); | ||||
|         $enrichment->setUser($admin); | ||||
|         $enrichment->setPrimaryCurrency($this->primaryCurrency); | ||||
|         $accounts    = $enrichment->enrich($accounts); | ||||
| 
 | ||||
|         /** @var AccountTransformer $transformer */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user