Skip to content

Commit 7b6b9dd

Browse files
committed
Psalm fixes
1 parent ce19e38 commit 7b6b9dd

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

Diff for: .idea/php.xml

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: app/Services/LookingGlass/BirdsEye.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public function __construct( Router $r )
6565
/**
6666
* Enable / disable caching
6767
*
68-
* @param bool
69-
*
68+
* @param bool $b
7069
* @return BirdsEye
7170
*/
7271
public function setCacheEnabled( bool $b ): BirdsEye

Diff for: app/Utils/Grapher/Mrtg.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ public function __construct( string $file )
125125
/**
126126
* Accessor for PERIOD_TIME
127127
*
128-
* @param string
129-
*
128+
* @param string $period
130129
* @return float
131130
*/
132-
public function getPeriodTime( $period ): float
131+
public function getPeriodTime( string $period ): float
133132
{
134133
return self::PERIOD_TIME[ $period ] ?? 0.0;
135134
}

Diff for: app/Utils/Grapher/Rrd.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ public function file(): string
142142
/**
143143
* Accessor for PERIOD_TIME
144144
*
145-
* @param string
146-
*
145+
* @param string $period
147146
* @return float
148147
*/
149-
public function getPeriodTime( $period ): float
148+
public function getPeriodTime( string $period ): float
150149
{
151150
return self::PERIOD_TIME[ $period ] ?? 0.0;
152151
}

Diff for: app/Utils/Horizon.php

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Horizon
3939
/**
4040
* Returns with Horizon's current status: 'inactive', 'paused' or 'running'
4141
*
42-
* @param void
4342
* @return string
4443
*/
4544
public static function status()

0 commit comments

Comments
 (0)