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:
parent
a33365d4c3
commit
97e51a19ef
1 changed files with 5 additions and 5 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue