From 07be28580b414d019e161dbf7284b429695010f0 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 21 Jun 2020 01:40:10 +0200 Subject: [PATCH] Lint --- classes/Video.php | 46 ++++++++++++++------------ classes/exceptions/AvconvException.php | 2 -- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/classes/Video.php b/classes/Video.php index 3643f79..ed61867 100644 --- a/classes/Video.php +++ b/classes/Video.php @@ -6,8 +6,10 @@ namespace Alltube\Library; -use Alltube\Library\Exception\AlltubeLibraryException; use Alltube\Library\Exception\EmptyUrlException; +use Alltube\Library\Exception\PasswordException; +use Alltube\Library\Exception\WrongPasswordException; +use Alltube\Library\Exception\YoutubedlException; use stdClass; /** @@ -99,9 +101,9 @@ class Video * @param string $prop Property * * @return string - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function getProp($prop = 'dump-json') { @@ -126,9 +128,9 @@ class Video * Get all information about a video. * * @return stdClass Decoded JSON - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function getJson() { @@ -145,9 +147,9 @@ class Video * @param string $name Property * * @return mixed - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function __get($name) { @@ -164,9 +166,9 @@ class Video * @param string $name Property * * @return bool - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function __isset($name) { @@ -182,9 +184,9 @@ class Video * * @return string[] URLs of video * @throws EmptyUrlException - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function getUrl() { @@ -204,9 +206,9 @@ class Video * Get filename of video file from URL of page. * * @return string Filename of extracted video - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function getFilename() { @@ -219,9 +221,9 @@ class Video * @param string $extension New file extension * * @return string Filename of extracted video with specified extension - * @throws Exception\PasswordException - * @throws Exception\WrongPasswordException - * @throws Exception\YoutubedlException + * @throws PasswordException + * @throws WrongPasswordException + * @throws YoutubedlException */ public function getFileNameWithExtension($extension) { diff --git a/classes/exceptions/AvconvException.php b/classes/exceptions/AvconvException.php index 7464174..760c8e9 100644 --- a/classes/exceptions/AvconvException.php +++ b/classes/exceptions/AvconvException.php @@ -2,8 +2,6 @@ namespace Alltube\Library\Exception; -use Throwable; - /** * Can't find avconv or ffmpeg. */