mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-14 04:16:54 +01:00
* [MOD] Code refactoring by enforcing type checks (WIP)
* [MOD] Update dependencies Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -86,7 +86,7 @@ final class EventlogController extends ControllerBase
|
||||
* @throws ConstraintException
|
||||
* @throws QueryException
|
||||
*/
|
||||
protected function getSearchGrid()
|
||||
protected function getSearchGrid(): EventlogController
|
||||
{
|
||||
$itemSearchData = $this->getSearchData($this->configData->getAccountCount(), $this->request);
|
||||
|
||||
@@ -105,7 +105,7 @@ final class EventlogController extends ControllerBase
|
||||
* @throws QueryException
|
||||
* @throws SPException
|
||||
*/
|
||||
public function searchAction()
|
||||
public function searchAction(): bool
|
||||
{
|
||||
if (!$this->acl->checkUserAccess(Acl::EVENTLOG_SEARCH)) {
|
||||
return $this->returnJsonResponse(JsonResponse::JSON_ERROR, __u('You don\'t have permission to do this operation'));
|
||||
@@ -118,9 +118,11 @@ final class EventlogController extends ControllerBase
|
||||
}
|
||||
|
||||
/**
|
||||
* clearAction
|
||||
* @return bool
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function clearAction()
|
||||
public function clearAction(): bool
|
||||
{
|
||||
try {
|
||||
$this->eventLogService->clear();
|
||||
|
||||
Reference in New Issue
Block a user