* [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:
Rubén D
2021-01-17 14:56:56 +01:00
parent 41703b50f9
commit 8e96ec4285
173 changed files with 1265 additions and 1092 deletions

View File

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