From 01c44e9002d03f58c9a5271c6256096de3273eb5 Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Mon, 9 Apr 2012 15:06:33 -0400 Subject: More PHPDoc comments and @var declarations to help IDE comprehension --- lib/videolist.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/videolist.php b/lib/videolist.php index 2dfc7d8fc..96a2c6335 100644 --- a/lib/videolist.php +++ b/lib/videolist.php @@ -6,6 +6,10 @@ foreach(explode(', ', VIDEOLIST_SUPPORTED_PLATFORMS) as $videotype){ include(elgg_get_plugins_path()."videolist/lib/$videotype.php"); } +/** + * @param string $url + * @return array + */ function videolist_parseurl($url){ foreach(explode(', ', VIDEOLIST_SUPPORTED_PLATFORMS) as $videotype){ if (is_callable("videolist_parseurl_$videotype")){ @@ -17,6 +21,10 @@ function videolist_parseurl($url){ return array(); } +/** + * @param array $parsed + * @return array + */ function videolist_get_data($parsed) { $videotype = $parsed['videotype']; $video_id = $parsed['video_id']; -- cgit v1.2.3