1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00

remove unneeded cast

This commit is contained in:
Robin Appelman 2022-05-15 15:58:15 +02:00
commit 97e51a19ef

View file

@ -135,11 +135,11 @@ class DemoController extends BaseController {
}
public function setDemoUrl(string $id): void {
$hash = (string) $this->post('hash', '');
$backend = (string) $this->post('backend', '');
$path = (string) $this->post('path', '');
$url = (string) $this->post('url', '');
$editKey = (string) $this->post('key', '');
$hash = $this->post('hash', '');
$backend = $this->post('backend', '');
$path = $this->post('path', '');
$url = $this->post('url', '');
$editKey = $this->post('key', '');
if ($editKey !== $this->editKey || '' === $editKey) {
throw new InvalidKeyException('Invalid key');
}