mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 10:53:31 +00:00
Some minor refactoring.
This commit is contained in:
@@ -37,11 +37,11 @@ class NewUserController extends Controller
|
||||
|
||||
|
||||
/**
|
||||
* @param ARI $repository
|
||||
* @param AccountCrudInterface $crud
|
||||
*
|
||||
* @@return View
|
||||
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector|View
|
||||
*/
|
||||
public function index(ARI $repository)
|
||||
public function index(AccountCrudInterface $crud)
|
||||
{
|
||||
|
||||
View::share('title', trans('firefly.welcome'));
|
||||
@@ -49,7 +49,7 @@ class NewUserController extends Controller
|
||||
|
||||
|
||||
$types = config('firefly.accountTypesByIdentifier.asset');
|
||||
$count = $repository->countAccounts($types);
|
||||
$count = $crud->count($types);
|
||||
|
||||
if ($count > 0) {
|
||||
return redirect(route('index'));
|
||||
|
Reference in New Issue
Block a user