Skip to content

Commit

Permalink
Psalm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jan 26, 2025
1 parent ce19e38 commit 7b6b9dd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
11 changes: 10 additions & 1 deletion .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions app/Services/LookingGlass/BirdsEye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions app/Utils/Grapher/Mrtg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 2 additions & 3 deletions app/Utils/Grapher/Rrd.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion app/Utils/Horizon.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class Horizon
/**
* Returns with Horizon's current status: 'inactive', 'paused' or 'running'
*
* @param void
* @return string
*/
public static function status()
Expand Down

0 comments on commit 7b6b9dd

Please sign in to comment.