This commit is contained in:
flash 2016-12-10 20:43:17 +01:00
parent fa0c4ff0d2
commit 2b4750cc6b
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -80,7 +80,7 @@ class Status
return $this->state;
}
public function save()
public function save(): void
{
DB::table('status_history')
->insert([