* [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

@@ -24,6 +24,8 @@
namespace SP\Modules\Web\Controllers;
use DI\DependencyException;
use DI\NotFoundException;
use Exception;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
@@ -52,7 +54,7 @@ final class ConfigImportController extends SimpleControllerBase
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function importAction()
public function importAction(): bool
{
if ($this->config->getConfigData()->isDemoEnabled()) {
return $this->returnJsonResponse(JsonResponse::JSON_WARNING, __u('Ey, this is a DEMO!!'));
@@ -102,6 +104,8 @@ final class ConfigImportController extends SimpleControllerBase
/**
* @return bool
* @throws SessionTimeout
* @throws DependencyException
* @throws NotFoundException
*/
protected function initialize()
{