mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-01 20:49:53 +09:00
Update to laravel 7
This commit is contained in:
@@ -33,7 +33,7 @@ class Hooks extends AbstractApi
|
||||
*/
|
||||
public function show($organization, $id)
|
||||
{
|
||||
return $this->get('/orgs/'.rawurlencode($organization).'/hooks/'.rawurlencode($id));
|
||||
return $this->get('/orgs/'.rawurlencode($organization).'/hooks/'.$id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -76,7 +76,7 @@ class Hooks extends AbstractApi
|
||||
throw new MissingArgumentException(['config']);
|
||||
}
|
||||
|
||||
return $this->patch('/orgs/'.rawurlencode($organization).'/hooks/'.rawurlencode($id), $params);
|
||||
return $this->patch('/orgs/'.rawurlencode($organization).'/hooks/'.$id, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,7 +91,7 @@ class Hooks extends AbstractApi
|
||||
*/
|
||||
public function ping($organization, $id)
|
||||
{
|
||||
return $this->post('/orgs/'.rawurlencode($organization).'/hooks/'.rawurlencode($id).'/pings');
|
||||
return $this->post('/orgs/'.rawurlencode($organization).'/hooks/'.$id.'/pings');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,6 +106,6 @@ class Hooks extends AbstractApi
|
||||
*/
|
||||
public function remove($organization, $id)
|
||||
{
|
||||
return $this->delete('/orgs/'.rawurlencode($organization).'/hooks/'.rawurlencode($id));
|
||||
return $this->delete('/orgs/'.rawurlencode($organization).'/hooks/'.$id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user