Remove reference to a method no longer used.

This commit is contained in:
James Cole
2022-01-29 14:11:12 +01:00
parent acb2a8697a
commit 003d8ba02a
104 changed files with 219 additions and 256 deletions

View File

@@ -78,7 +78,7 @@ class CreateController extends Controller
$request->session()->forget('categories.create.fromStore');
$subTitle = (string)trans('firefly.create_new_category');
return prefixView('categories.create', compact('subTitle'));
return view('categories.create', compact('subTitle'));
}
/**

View File

@@ -74,7 +74,7 @@ class DeleteController extends Controller
// put previous url in session
$this->rememberPreviousUri('categories.delete.uri');
return prefixView('categories.delete', compact('category', 'subTitle'));
return view('categories.delete', compact('category', 'subTitle'));
}
/**

View File

@@ -86,7 +86,7 @@ class EditController extends Controller
'notes' => $request->old('notes') ?? $this->repository->getNoteText($category),
];
return prefixView('categories.edit', compact('category', 'subTitle', 'preFilled'));
return view('categories.edit', compact('category', 'subTitle', 'preFilled'));
}
/**

View File

@@ -87,7 +87,7 @@ class IndexController extends Controller
$categories = new LengthAwarePaginator($collection, $total, $pageSize, $page);
$categories->setPath(route('categories.index'));
return prefixView('categories.index', compact('categories'));
return view('categories.index', compact('categories'));
}
}

View File

@@ -104,7 +104,7 @@ class NoCategoryController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath(route('categories.no-category'));
return prefixView('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
}
/**
@@ -139,6 +139,6 @@ class NoCategoryController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath(route('categories.no-category.all'));
return prefixView('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
return view('categories.no-category', compact('groups', 'subTitle', 'periods', 'start', 'end'));
}
}

View File

@@ -107,7 +107,7 @@ class ShowController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath($path);
return prefixView('categories.show', compact('category', 'attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
return view('categories.show', compact('category', 'attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
}
/**
@@ -146,6 +146,6 @@ class ShowController extends Controller
$groups = $collector->getPaginatedGroups();
$groups->setPath($path);
return prefixView('categories.show', compact('category', 'attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
return view('categories.show', compact('category', 'attachments', 'groups', 'periods', 'subTitle', 'subTitleIcon', 'start', 'end'));
}
}