mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-17 05:12:43 +09:00
Update to laravel 7
This commit is contained in:
@@ -83,7 +83,7 @@ class Notifications extends AbstractApi
|
||||
*/
|
||||
public function markAsRead($id, array $params)
|
||||
{
|
||||
return $this->patch('/notifications/threads/'.rawurlencode($id), $params);
|
||||
return $this->patch('/notifications/threads/'.$id, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +97,7 @@ class Notifications extends AbstractApi
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return $this->get('/notifications/threads/'.rawurlencode($id));
|
||||
return $this->get('/notifications/threads/'.$id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,7 +111,7 @@ class Notifications extends AbstractApi
|
||||
*/
|
||||
public function showSubscription($id)
|
||||
{
|
||||
return $this->get('/notifications/threads/'.rawurlencode($id).'/subscription');
|
||||
return $this->get('/notifications/threads/'.$id.'/subscription');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,7 +126,7 @@ class Notifications extends AbstractApi
|
||||
*/
|
||||
public function createSubscription($id, array $params)
|
||||
{
|
||||
return $this->put('/notifications/threads/'.rawurlencode($id).'/subscription', $params);
|
||||
return $this->put('/notifications/threads/'.$id.'/subscription', $params);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -140,6 +140,6 @@ class Notifications extends AbstractApi
|
||||
*/
|
||||
public function removeSubscription($id)
|
||||
{
|
||||
return $this->delete('/notifications/threads/'.rawurlencode($id).'/subscription');
|
||||
return $this->delete('/notifications/threads/'.$id.'/subscription');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class PublicKeys extends AbstractApi
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return $this->get('/user/keys/'.rawurlencode($id));
|
||||
return $this->get('/user/keys/'.$id);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,6 +69,6 @@ class PublicKeys extends AbstractApi
|
||||
*/
|
||||
public function remove($id)
|
||||
{
|
||||
return $this->delete('/user/keys/'.rawurlencode($id));
|
||||
return $this->delete('/user/keys/'.$id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,12 +21,12 @@ class Starring extends AbstractApi
|
||||
*
|
||||
* @param string $bodyType
|
||||
*
|
||||
* @return self
|
||||
* @return $this
|
||||
*/
|
||||
public function configure($bodyType = null)
|
||||
{
|
||||
if ('star' === $bodyType) {
|
||||
$this->acceptHeaderValue = sprintf('application/vnd.github.%s.star+json', $this->client->getApiVersion());
|
||||
$this->acceptHeaderValue = sprintf('application/vnd.github.%s.star+json', $this->getApiVersion());
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user