]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget.php
Remove code parameter from HTTPException constructor
[friendica.git] / src / Content / Widget.php
index adf6545b43c4a83ad8d2f7e09dc7eb466adcfcf3..b7fa5ab4e8903f1e42c3e8a5e67405206acea80b 100644 (file)
@@ -4,8 +4,6 @@
  */
 namespace Friendica\Content;
 
-use Friendica\Content\ContactSelector;
-use Friendica\Content\Feature;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
 use Friendica\Core\L10n;
@@ -28,6 +26,8 @@ class Widget
         * Return the follow widget
         *
         * @param string $value optional, default empty
+        * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function follow($value = "")
        {
@@ -125,6 +125,8 @@ class Widget
         *
         * @param string $baseurl  baseurl
         * @param string $selected optional, default empty
+        * @return string
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function networks($baseurl, $selected = '')
        {
@@ -167,6 +169,8 @@ class Widget
         *
         * @param string $baseurl  baseurl
         * @param string $selected optional, default empty
+        * @return string|void
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function fileAs($baseurl, $selected = '')
        {
@@ -205,6 +209,8 @@ class Widget
         *
         * @param string $baseurl  baseurl
         * @param string $selected optional, default empty
+        * @return string|void
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function categories($baseurl, $selected = '')
        {
@@ -244,6 +250,8 @@ class Widget
         * Return common friends visitor widget
         *
         * @param string $profile_uid uid
+        * @return string|void
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function commonFriendsVisitor($profile_uid)
        {
@@ -327,8 +335,10 @@ class Widget
         * Insert a tag cloud widget for the present profile.
         *
         * @brief Insert a tag cloud widget for the present profile.
-        * @param int     $limit Max number of displayed tags.
+        * @param int $limit Max number of displayed tags.
         * @return string HTML formatted output.
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         */
        public static function tagCloud($limit = 50)
        {