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

@@ -104,7 +104,7 @@ abstract class ControllerBase
* @throws DependencyException
* @throws NotFoundException
*/
public final function __construct(Container $container, $actionName)
public final function __construct(Container $container, string $actionName)
{
$this->dic = $container;
$this->context = $container->get(StatelessContext::class);
@@ -126,7 +126,7 @@ abstract class ControllerBase
/**
* @return string
*/
final protected function getControllerName()
final protected function getControllerName(): string
{
$class = static::class;
@@ -136,7 +136,7 @@ abstract class ControllerBase
/**
* @return bool
*/
protected function isAuthenticated()
protected function isAuthenticated(): bool
{
return $this->isAuthenticated;
}
@@ -147,7 +147,7 @@ abstract class ControllerBase
* @throws SPException
* @throws ServiceException
*/
final protected function setupApi($actionId)
final protected function setupApi(int $actionId)
{
$this->apiService->setup($actionId);