From a0bc6c2eb366ee710374c2b1289fbf6c1eb3060c Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:38:58 +0100 Subject: [PATCH 1/3] Add phpdoc for available facade methods --- src/Facades/Vimeo.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Facades/Vimeo.php b/src/Facades/Vimeo.php index c2adeb8..d2d1bb8 100644 --- a/src/Facades/Vimeo.php +++ b/src/Facades/Vimeo.php @@ -25,6 +25,24 @@ * This is the Vimeo facade class. * * @author Vincent Klaiber + * + * @method static Vimeo connection(string $name = null) + * @method static Vimeo reconnect(string $name = null) + * @method static void disconnect(string $name = null) + * @method static array getConnectionConfig(string $name = null) + * @method static string getDefaultConnection() + * @method static void setDefaultConnection(string $name) + * @method static void extend(string $name, callable $resolver) + * @method static array getConnections() + * + * @method static array request($url, array $params, string $method = 'GET', bool $json_body = true, array $headers) + * @method static void setCURLOptions(array $curl_opts = array()) + * @method static void setProxy(string $proxy_address, string $proxy_port = null, string $proxy_userpwd = null) + * @method static array accessToken(string $code, string $redirect_uri) + * @method static string upload(string $file_path, array $params = []) + * @method static string replace(string $video_uri, string $file_path, array $params = []) + * @method static string uploadImage(string $pictures_uri, string $file_path, bool $activate = false) + * @method static string uploadTexttrack(string $texttracks_uri, string $file_path, string $track_type, string $language) */ class Vimeo extends Facade { From 036c7065013d5388761b4e02d8b1de934a626d63 Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:42:02 +0100 Subject: [PATCH 2/3] Fix Vimeo type --- src/Facades/Vimeo.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Facades/Vimeo.php b/src/Facades/Vimeo.php index d2d1bb8..6997b69 100644 --- a/src/Facades/Vimeo.php +++ b/src/Facades/Vimeo.php @@ -20,21 +20,22 @@ namespace Vimeo\Laravel\Facades; use Illuminate\Support\Facades\Facade; +use \Vimeo\Vimeo as Connection; /** * This is the Vimeo facade class. * * @author Vincent Klaiber * - * @method static Vimeo connection(string $name = null) - * @method static Vimeo reconnect(string $name = null) + * @method static Connection connection(string $name = null) + * @method static Connection reconnect(string $name = null) * @method static void disconnect(string $name = null) * @method static array getConnectionConfig(string $name = null) * @method static string getDefaultConnection() * @method static void setDefaultConnection(string $name) * @method static void extend(string $name, callable $resolver) - * @method static array getConnections() - * + * @method static array getConnections() + * * @method static array request($url, array $params, string $method = 'GET', bool $json_body = true, array $headers) * @method static void setCURLOptions(array $curl_opts = array()) * @method static void setProxy(string $proxy_address, string $proxy_port = null, string $proxy_userpwd = null) From 132efcd14f17f54bda0db7fcfa73d169cb23bb58 Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:44:47 +0100 Subject: [PATCH 3/3] Fix optional params --- src/Facades/Vimeo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Facades/Vimeo.php b/src/Facades/Vimeo.php index 6997b69..c0d4c6d 100644 --- a/src/Facades/Vimeo.php +++ b/src/Facades/Vimeo.php @@ -36,7 +36,7 @@ * @method static void extend(string $name, callable $resolver) * @method static array getConnections() * - * @method static array request($url, array $params, string $method = 'GET', bool $json_body = true, array $headers) + * @method static array request($url, array $params = [], string $method = 'GET', bool $json_body = true, array $headers = []) * @method static void setCURLOptions(array $curl_opts = array()) * @method static void setProxy(string $proxy_address, string $proxy_port = null, string $proxy_userpwd = null) * @method static array accessToken(string $code, string $redirect_uri)