types
This commit is contained in:
parent
fa0c4ff0d2
commit
2b4750cc6b
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ class StatusController extends Controller
|
|||
* Renders the base status page.
|
||||
* @return string
|
||||
*/
|
||||
public function index()
|
||||
public function index(): string
|
||||
{
|
||||
$endpoints = array_keys(config('status.check'));
|
||||
$events = DB::table('status_events')
|
||||
|
@ -50,7 +50,7 @@ class StatusController extends Controller
|
|||
* Gets status information.
|
||||
* @return string
|
||||
*/
|
||||
public function data()
|
||||
public function data(): string
|
||||
{
|
||||
$endpoints = config('status.check');
|
||||
$name = $_GET['name'] ?? null;
|
||||
|
|
|
@ -80,7 +80,7 @@ class Status
|
|||
return $this->state;
|
||||
}
|
||||
|
||||
public function save()
|
||||
public function save(): void
|
||||
{
|
||||
DB::table('status_history')
|
||||
->insert([
|
||||
|
|
Reference in a new issue