mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-11-13 19:33:09 +09:00
Update composer dependencies
This commit is contained in:
@@ -14,9 +14,9 @@ class Collaborators extends AbstractApi
|
||||
/**
|
||||
* @link https://developer.github.com/v3/repos/collaborators/#list-collaborators
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param array $params
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param array $params
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
@@ -28,9 +28,9 @@ class Collaborators extends AbstractApi
|
||||
/**
|
||||
* @link https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param $collaborator
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param string $collaborator
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
@@ -42,10 +42,10 @@ class Collaborators extends AbstractApi
|
||||
/**
|
||||
* @link https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param $collaborator
|
||||
* @param array $params
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param string $collaborator
|
||||
* @param array $params
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
@@ -57,9 +57,9 @@ class Collaborators extends AbstractApi
|
||||
/**
|
||||
* @link https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param $collaborator
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param string $collaborator
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
@@ -71,9 +71,9 @@ class Collaborators extends AbstractApi
|
||||
/**
|
||||
* @link https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param $collaborator
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param string $collaborator
|
||||
*
|
||||
* @return array|string
|
||||
*/
|
||||
|
||||
@@ -143,7 +143,7 @@ class Contents extends AbstractApi
|
||||
'ref' => $reference,
|
||||
]);
|
||||
|
||||
if ($response->getStatusCode() != 200) {
|
||||
if ($response->getStatusCode() !== 200) {
|
||||
return false;
|
||||
}
|
||||
} catch (TwoFactorAuthenticationRequiredException $ex) {
|
||||
@@ -276,8 +276,8 @@ class Contents extends AbstractApi
|
||||
{
|
||||
$file = $this->show($username, $repository, $path, $reference);
|
||||
|
||||
if (!isset($file['type']) || 'file' !== $file['type']) {
|
||||
throw new InvalidArgumentException(sprintf('Path "%s" is not a file.', $path));
|
||||
if (!isset($file['type']) || !in_array($file['type'], ['file', 'symlink'], true)) {
|
||||
throw new InvalidArgumentException(sprintf('Path "%s" is not a file or a symlink to a file.', $path));
|
||||
}
|
||||
|
||||
if (!isset($file['content'])) {
|
||||
|
||||
@@ -16,8 +16,8 @@ class Releases extends AbstractApi
|
||||
/**
|
||||
* Get the latest release.
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -29,9 +29,9 @@ class Releases extends AbstractApi
|
||||
/**
|
||||
* List releases for a tag.
|
||||
*
|
||||
* @param $username
|
||||
* @param $repository
|
||||
* @param $tag
|
||||
* @param string $username
|
||||
* @param string $repository
|
||||
* @param string $tag
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user