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

@@ -61,7 +61,7 @@ final class TaskController
/**
* @param string $taskId
*/
public function trackStatusAction($taskId)
public function trackStatusAction(string $taskId)
{
$response = $this->router->response();
$response->header('Content-Type', 'text/event-stream');
@@ -85,11 +85,11 @@ final class TaskController
}
/**
* @param $taskId
* @param string $taskId
*
* @throws FileException
*/
public function testTaskAction($taskId)
public function testTaskAction(string $taskId)
{
$task = TaskFactory::create($taskId, $taskId);