From d3bc07141e6d3c952504ab32b55c4e39d402e227 Mon Sep 17 00:00:00 2001 From: Brent Cordis Date: Thu, 16 Jan 2025 20:00:13 -0600 Subject: [PATCH] Remove left over upload doc call-outs --- .../src/Addons/Servers/Legacy/CWMAddonLegacy.php | 1 - .../Addons/Servers/Youtube/CWMAddonYoutube.php | 15 +++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/admin/src/Addons/Servers/Legacy/CWMAddonLegacy.php b/admin/src/Addons/Servers/Legacy/CWMAddonLegacy.php index ecbfb6351..a2260e786 100644 --- a/admin/src/Addons/Servers/Legacy/CWMAddonLegacy.php +++ b/admin/src/Addons/Servers/Legacy/CWMAddonLegacy.php @@ -21,7 +21,6 @@ use Exception; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -use Joomla\Input\Input; /** * Class CWMAddonLegacy diff --git a/admin/src/Addons/Servers/Youtube/CWMAddonYoutube.php b/admin/src/Addons/Servers/Youtube/CWMAddonYoutube.php index 67d986e1d..e431294a5 100644 --- a/admin/src/Addons/Servers/Youtube/CWMAddonYoutube.php +++ b/admin/src/Addons/Servers/Youtube/CWMAddonYoutube.php @@ -18,7 +18,6 @@ use CWM\Component\Proclaim\Administrator\Addons\CWMAddon; use Joomla\CMS\HTML\HTMLHelper; -use Joomla\CMS\Input\Input; use Joomla\CMS\Language\Text; /** @@ -48,13 +47,13 @@ class CWMAddonYoutube extends CWMAddon /** * Upload * - * @param array|Input $data Data to upload + * @param ?array $data Data to upload * * @return array * * @since 9.0.0 */ - public function upload(\Joomla\Input\Input|array $data): mixed + public function upload(?array $data): mixed { // Holds for nothing return $data; @@ -63,8 +62,8 @@ public function upload(\Joomla\Input\Input|array $data): mixed /** * Render Fields for general view. * - * @param object $media_form Medea files form - * @param bool $new If media is new + * @param object $media_form Medea files form + * @param bool $new If media is new * * @return string * @@ -104,8 +103,8 @@ public function renderGeneral($media_form, bool $new): string /** * Render Layout and fields * - * @param object $media_form Medea files form - * @param bool $new If media is new + * @param object $media_form Medea files form + * @param bool $new If media is new * * @return string * @@ -156,7 +155,7 @@ public function render($media_form, bool $new): string /** * Youtube url to embed. * - * @param string $url YouTube url to transform. + * @param string $url YouTube url to transform. * * @return string *