]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/Feed.php
Merge pull request #6798 from annando/key-warning
[friendica.git] / src / Protocol / Feed.php
index 91341328a1171dd21c3700c557c60edb42126e1a..3981a8860cbf4c3f949885634bf9b703015c01a0 100644 (file)
@@ -25,13 +25,14 @@ class Feed {
        /**
         * @brief Read a RSS/RDF/Atom feed and create an item entry for it
         *
-        * @param string $xml The feed data
-        * @param array $importer The user record of the importer
-        * @param array $contact The contact record of the feed
-        * @param string $hub Unused dummy value for compatibility reasons
-        * @param bool $simulate If enabled, no data is imported
+        * @param string $xml      The feed data
+        * @param array  $importer The user record of the importer
+        * @param array  $contact  The contact record of the feed
+        * @param string $hub      Unused dummy value for compatibility reasons
+        * @param bool   $simulate If enabled, no data is imported
         *
         * @return array In simulation mode it returns the header and the first item
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function import($xml, $importer, &$contact, &$hub, $simulate = false) {
 
@@ -317,7 +318,6 @@ class Feed {
                                $href = "";
                                $length = "";
                                $type = "";
-                               $title = "";
 
                                foreach ($enclosure->attributes AS $attribute) {
                                        if (in_array($attribute->name, ["url", "href"])) {