mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-17 05:12:43 +09:00
Update composer dependencies
This commit is contained in:
@@ -52,7 +52,7 @@ class Emails extends AbstractApi
|
||||
if (is_string($emails)) {
|
||||
$emails = [$emails];
|
||||
} elseif (0 === count($emails)) {
|
||||
throw new InvalidArgumentException();
|
||||
throw new InvalidArgumentException('The user emails parameter should be a single email or an array of emails');
|
||||
}
|
||||
|
||||
return $this->post('/user/emails', $emails);
|
||||
@@ -74,7 +74,7 @@ class Emails extends AbstractApi
|
||||
if (is_string($emails)) {
|
||||
$emails = [$emails];
|
||||
} elseif (0 === count($emails)) {
|
||||
throw new InvalidArgumentException();
|
||||
throw new InvalidArgumentException('The user emails parameter should be a single email or an array of emails');
|
||||
}
|
||||
|
||||
return $this->delete('/user/emails', $emails);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace Github\Api\CurrentUser;
|
||||
|
||||
use Github\Api\AbstractApi;
|
||||
use Github\Api\AcceptHeaderTrait;
|
||||
|
||||
/**
|
||||
* @link https://developer.github.com/v3/activity/starring/
|
||||
@@ -11,6 +12,26 @@ use Github\Api\AbstractApi;
|
||||
*/
|
||||
class Starring extends AbstractApi
|
||||
{
|
||||
use AcceptHeaderTrait;
|
||||
|
||||
/**
|
||||
* Configure the body type.
|
||||
*
|
||||
* @see https://developer.github.com/v3/activity/starring/#list-stargazers
|
||||
*
|
||||
* @param string $bodyType
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function configure($bodyType = null)
|
||||
{
|
||||
if ('star' === $bodyType) {
|
||||
$this->acceptHeaderValue = sprintf('application/vnd.github.%s.star+json', $this->client->getApiVersion());
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List repositories starred by the authenticated user.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user