Some minor refactoring.

This commit is contained in:
James Cole
2016-10-08 10:02:33 +02:00
parent d43936155c
commit 24f62b8fce
7 changed files with 170 additions and 143 deletions

View File

@@ -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'));