Skip to content

Commit 8d471af

Browse files
Modify health controller:
Replace output type hint instead doc block comments.
1 parent 75a4af6 commit 8d471af

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

src/Http/Controllers/HealthController.php

+3-18
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ public function index()
5555
return view('health::index', compact('data'));
5656
}
5757

58-
/**
59-
* Check database connection
60-
*
61-
* @return bool
62-
*/
63-
private static function checkDataBase()
58+
private static function checkDataBase(): bool
6459
{
6560
try {
6661
DB::connection()->getPdo();
@@ -70,12 +65,7 @@ private static function checkDataBase()
7065
}
7166
}
7267

73-
/**
74-
* Check migrations
75-
*
76-
* @return bool
77-
*/
78-
private static function checkMigrataions()
68+
private static function checkMigrataions(): bool
7969
{
8070
$migrations = DB::table('migrations')->get();
8171
$files = Storage::files(base_path() . '/database/migrations/');
@@ -86,12 +76,7 @@ private static function checkMigrataions()
8676
return false;
8777
}
8878

89-
/**
90-
* Check routes
91-
*
92-
* @return bool
93-
*/
94-
private static function checkRoutes()
79+
private static function checkRoutes(): bool
9580
{
9681
$blackList = ['health'];
9782
$routes = Route::getRoutes()->getRoutesByMethod()['GET'];

0 commit comments

Comments
 (0)