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 { public function setDemoUrl(string $id): void {
$hash = (string) $this->post('hash', ''); $hash = $this->post('hash', '');
$backend = (string) $this->post('backend', ''); $backend = $this->post('backend', '');
$path = (string) $this->post('path', ''); $path = $this->post('path', '');
$url = (string) $this->post('url', ''); $url = $this->post('url', '');
$editKey = (string) $this->post('key', ''); $editKey = $this->post('key', '');
if ($editKey !== $this->editKey || '' === $editKey) { if ($editKey !== $this->editKey || '' === $editKey) {
throw new InvalidKeyException('Invalid key'); throw new InvalidKeyException('Invalid key');
} }