Commit 8d471af 1 parent 75a4af6 commit 8d471af Copy full SHA for 8d471af
File tree 1 file changed +3
-18
lines changed
1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,7 @@ public function index()
55
55
return view ('health::index ' , compact ('data ' ));
56
56
}
57
57
58
- /**
59
- * Check database connection
60
- *
61
- * @return bool
62
- */
63
- private static function checkDataBase ()
58
+ private static function checkDataBase (): bool
64
59
{
65
60
try {
66
61
DB ::connection ()->getPdo ();
@@ -70,12 +65,7 @@ private static function checkDataBase()
70
65
}
71
66
}
72
67
73
- /**
74
- * Check migrations
75
- *
76
- * @return bool
77
- */
78
- private static function checkMigrataions ()
68
+ private static function checkMigrataions (): bool
79
69
{
80
70
$ migrations = DB ::table ('migrations ' )->get ();
81
71
$ files = Storage::files (base_path () . '/database/migrations/ ' );
@@ -86,12 +76,7 @@ private static function checkMigrataions()
86
76
return false ;
87
77
}
88
78
89
- /**
90
- * Check routes
91
- *
92
- * @return bool
93
- */
94
- private static function checkRoutes ()
79
+ private static function checkRoutes (): bool
95
80
{
96
81
$ blackList = ['health ' ];
97
82
$ routes = Route::getRoutes ()->getRoutesByMethod ()['GET ' ];
You can’t perform that action at this time.
0 commit comments