From 7b6b9dd197ff33b6262fa3f7149e7c8247a8cf14 Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Sun, 26 Jan 2025 10:07:51 +0000 Subject: [PATCH] Psalm fixes --- .idea/php.xml | 11 ++++++++++- app/Services/LookingGlass/BirdsEye.php | 3 +-- app/Utils/Grapher/Mrtg.php | 5 ++--- app/Utils/Grapher/Rrd.php | 5 ++--- app/Utils/Horizon.php | 1 - 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.idea/php.xml b/.idea/php.xml index b2a39e6d0..d4672d05a 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -287,9 +287,18 @@ + + + + + + + + + - + diff --git a/app/Services/LookingGlass/BirdsEye.php b/app/Services/LookingGlass/BirdsEye.php index ccdfa69b1..d3b26e237 100644 --- a/app/Services/LookingGlass/BirdsEye.php +++ b/app/Services/LookingGlass/BirdsEye.php @@ -65,8 +65,7 @@ public function __construct( Router $r ) /** * Enable / disable caching * - * @param bool - * + * @param bool $b * @return BirdsEye */ public function setCacheEnabled( bool $b ): BirdsEye diff --git a/app/Utils/Grapher/Mrtg.php b/app/Utils/Grapher/Mrtg.php index aadb16bf8..edfa1ce84 100644 --- a/app/Utils/Grapher/Mrtg.php +++ b/app/Utils/Grapher/Mrtg.php @@ -125,11 +125,10 @@ public function __construct( string $file ) /** * Accessor for PERIOD_TIME * - * @param string - * + * @param string $period * @return float */ - public function getPeriodTime( $period ): float + public function getPeriodTime( string $period ): float { return self::PERIOD_TIME[ $period ] ?? 0.0; } diff --git a/app/Utils/Grapher/Rrd.php b/app/Utils/Grapher/Rrd.php index 83f247dac..74a6191c1 100644 --- a/app/Utils/Grapher/Rrd.php +++ b/app/Utils/Grapher/Rrd.php @@ -142,11 +142,10 @@ public function file(): string /** * Accessor for PERIOD_TIME * - * @param string - * + * @param string $period * @return float */ - public function getPeriodTime( $period ): float + public function getPeriodTime( string $period ): float { return self::PERIOD_TIME[ $period ] ?? 0.0; } diff --git a/app/Utils/Horizon.php b/app/Utils/Horizon.php index c50aa443a..a475499a3 100644 --- a/app/Utils/Horizon.php +++ b/app/Utils/Horizon.php @@ -39,7 +39,6 @@ class Horizon /** * Returns with Horizon's current status: 'inactive', 'paused' or 'running' * - * @param void * @return string */ public static function status()