diff --git a/lib/Command/ExportScripts.php b/lib/Command/ExportScripts.php
index 9f01671..44d54a5 100644
--- a/lib/Command/ExportScripts.php
+++ b/lib/Command/ExportScripts.php
@@ -27,7 +27,7 @@ protected function configure(): void {
parent::configure();
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$scriptId = $input->getOption('id');
$scriptId = $scriptId ? intval($scriptId) : null;
if ($scriptId !== null) {
diff --git a/lib/Command/ImportScripts.php b/lib/Command/ImportScripts.php
index fc51842..8fff42a 100644
--- a/lib/Command/ImportScripts.php
+++ b/lib/Command/ImportScripts.php
@@ -28,7 +28,7 @@ protected function configure(): void {
parent::configure();
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$json = file_get_contents("php://stdin");
if (false === $json) {
$output->writeln('You need an interactive terminal to run this command');
diff --git a/lib/Command/ListScripts.php b/lib/Command/ListScripts.php
index 0ecf782..c73ce3d 100644
--- a/lib/Command/ListScripts.php
+++ b/lib/Command/ListScripts.php
@@ -21,7 +21,7 @@ protected function configure(): void {
parent::configure();
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('Listing file actions:');
$scripts = $this->scriptMapper->findAll();
diff --git a/lib/Command/RunScript.php b/lib/Command/RunScript.php
index 5876833..02ab4c8 100644
--- a/lib/Command/RunScript.php
+++ b/lib/Command/RunScript.php
@@ -44,12 +44,12 @@ protected function configure(): void {
parent::configure();
}
- protected function execute(InputInterface $input, OutputInterface $output) {
+ protected function execute(InputInterface $input, OutputInterface $output): int {
$scriptId = $input->getArgument('id');
$userId = $input->getOption('user');
$scriptInputsJson = $input->getOption('inputs') ?? '{}';
$fileInputs = $input->getOption('file') ?? [];
-
+
try {
$scriptInputsData = json_decode($scriptInputsJson, true, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $err) {
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
if (ctype_digit(strval($fileInput))) {
$nodes = $rootFolder->getById(intval($fileInput));
if (!isset($nodes[0])) {
- $output->writeln('Could not find input file ' . $fileInput . ' belonging in root folder ' . $rootFolder->getPath() . ' for file action');
+ $output->writeln('Could not find input file ' . $fileInput . ' belonging in root folder ' . $rootFolder->getPath() . ' for file action');
return 1;
}
$file = $nodes[0];