diff --git a/cli/common/Alias/Command.php b/cli/common/Alias/Command.php index bce5031..5c6eddd 100644 --- a/cli/common/Alias/Command.php +++ b/cli/common/Alias/Command.php @@ -7,7 +7,7 @@ use Symfony\Component\Console; class Command extends Console\Command\Command { - public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, string $name = null) + public function __construct(protected ClientInterface $client, protected LoggerInterface $logger, ?string $name = null) { parent::__construct($name); } diff --git a/cli/src/Command/Comunas.php b/cli/src/Command/Comunas.php index 072980e..d7de853 100644 --- a/cli/src/Command/Comunas.php +++ b/cli/src/Command/Comunas.php @@ -10,8 +10,8 @@ use Incoviba\Common\Alias\Command; )] class Comunas extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) - { + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int + { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/direcciones/region/13/comunas'; $output->writeln("GET {$uri}"); diff --git a/cli/src/Command/Contabilidad/Cartolas/Update.php b/cli/src/Command/Contabilidad/Cartolas/Update.php index 9df5ae8..8d1b5f5 100644 --- a/cli/src/Command/Contabilidad/Cartolas/Update.php +++ b/cli/src/Command/Contabilidad/Cartolas/Update.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class Update extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/contabilidad/cartolas/update'; diff --git a/cli/src/Command/Full.php b/cli/src/Command/Full.php index 5661650..db17b98 100644 --- a/cli/src/Command/Full.php +++ b/cli/src/Command/Full.php @@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command; )] class Full extends Command { - public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, string $name = null) + public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, ?string $name = null) { parent::__construct($client, $logger, $name); } diff --git a/cli/src/Command/Money/IPC.php b/cli/src/Command/Money/IPC.php index f165fc3..a1b8590 100644 --- a/cli/src/Command/Money/IPC.php +++ b/cli/src/Command/Money/IPC.php @@ -12,7 +12,7 @@ use Incoviba\Common\Alias\Command; )] class IPC extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $lastMonth = (new DateTimeImmutable())->sub(new DateInterval('P1M')); diff --git a/cli/src/Command/Money/UF.php b/cli/src/Command/Money/UF.php index 3511622..ae1d8a8 100644 --- a/cli/src/Command/Money/UF.php +++ b/cli/src/Command/Money/UF.php @@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command; )] class UF extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $now = new DateTimeImmutable(); diff --git a/cli/src/Command/Money/UF/Update.php b/cli/src/Command/Money/UF/Update.php index b090d9d..e315d75 100644 --- a/cli/src/Command/Money/UF/Update.php +++ b/cli/src/Command/Money/UF/Update.php @@ -11,7 +11,7 @@ use Incoviba\Common\Alias\Command; )] class Update extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $url = '/api/money/ufs'; diff --git a/cli/src/Command/Proyectos/Activos.php b/cli/src/Command/Proyectos/Activos.php index e23722e..75112df 100644 --- a/cli/src/Command/Proyectos/Activos.php +++ b/cli/src/Command/Proyectos/Activos.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class Activos extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/proyectos'; diff --git a/cli/src/Command/Ventas/Cierres/Vigentes.php b/cli/src/Command/Ventas/Cierres/Vigentes.php index 809a58a..e48550f 100644 --- a/cli/src/Command/Ventas/Cierres/Vigentes.php +++ b/cli/src/Command/Ventas/Cierres/Vigentes.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class Vigentes extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/ventas/cierres/vigentes'; diff --git a/cli/src/Command/Ventas/Cuotas/Hoy.php b/cli/src/Command/Ventas/Cuotas/Hoy.php index 337f59a..a826caa 100644 --- a/cli/src/Command/Ventas/Cuotas/Hoy.php +++ b/cli/src/Command/Ventas/Cuotas/Hoy.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class Hoy extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/ventas/cuotas/hoy'; diff --git a/cli/src/Command/Ventas/Cuotas/Pendientes.php b/cli/src/Command/Ventas/Cuotas/Pendientes.php index b8b6daa..ebbb0e1 100644 --- a/cli/src/Command/Ventas/Cuotas/Pendientes.php +++ b/cli/src/Command/Ventas/Cuotas/Pendientes.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class Pendientes extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/ventas/cuotas/pendiente'; diff --git a/cli/src/Command/Ventas/Cuotas/PorVencer.php b/cli/src/Command/Ventas/Cuotas/PorVencer.php index 9f90539..ea5bf30 100644 --- a/cli/src/Command/Ventas/Cuotas/PorVencer.php +++ b/cli/src/Command/Ventas/Cuotas/PorVencer.php @@ -10,7 +10,7 @@ use Incoviba\Common\Alias\Command; )] class PorVencer extends Command { - public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output) + public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $this->logger->debug("Running {$this->getName()}"); $uri = '/api/ventas/cuotas/vencer';