From db0b37494cdfb168166d0e9074b0109f083b5305 Mon Sep 17 00:00:00 2001 From: Vladyslav Sikailo Date: Wed, 22 Nov 2023 10:00:41 +0200 Subject: [PATCH] Add command return types --- src/Console/Command/CollectMetricsCommand.php | 4 ++-- src/Console/Command/ListMetricsCommand.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console/Command/CollectMetricsCommand.php b/src/Console/Command/CollectMetricsCommand.php index f88c25c..43a17bc 100644 --- a/src/Console/Command/CollectMetricsCommand.php +++ b/src/Console/Command/CollectMetricsCommand.php @@ -37,7 +37,7 @@ public function __construct( $this->state = $state; } - protected function configure() + protected function configure(): void { $this->setName(self::COMMAND_NAME); $this->setDescription(self::COMMAND_DESCRIPTION); @@ -46,7 +46,7 @@ protected function configure() parent::configure(); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { try { $this->state->getAreaCode(); diff --git a/src/Console/Command/ListMetricsCommand.php b/src/Console/Command/ListMetricsCommand.php index de5d6d8..7dcdb53 100644 --- a/src/Console/Command/ListMetricsCommand.php +++ b/src/Console/Command/ListMetricsCommand.php @@ -45,7 +45,7 @@ protected function configure(): void parent::configure(); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { try { $this->state->setAreaCode(Area::AREA_GLOBAL);