mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 23:24:07 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user