e107inc/e107

View on GitHub
e107_plugins/newsfeed/newsfeed_functions.php

Summary

Maintainability
A
0 mins
Test Coverage
F
24%

Reference to instance property items from undeclared class \MagpieRSS
Open

                        $temp['items'] = array_slice($rss->items, 0, max($newsfeed_showmenu, $newsfeed_showmain));        // Limited items

Invalid offset "copyright" of array type array{link:array|mixed|string|string[]}
Open

                    $vars['FEEDCOPYRIGHT']      = $tp -> toHTML(vartrue($rss['channel']['copyright']), FALSE);

Reference to instance property channel from undeclared class \MagpieRSS
Open

                        elseif($rss->channel['tagline'])

Reference to instance property channel from undeclared class \MagpieRSS
Open

                            $newsfeed_des = $tp -> toDB($rss -> channel['tagline']);

Variable $ret was undeclared, but array fields are being added to it.
Open

            $ret['title'] = $feed['newsfeed_name']." ".varset($NEWSFEED_MAIN_CAPTION);

Reference to instance property image from undeclared class \MagpieRSS
Open

                        $temp['newsfeed_image_link'] =  "<a href='".$rss->image['link']."' rel='external'><img src='".$rss->image['url']."' alt='".$rss->image['title']."' style='vertical-align: middle;' /></a>";

Reference to instance property channel from undeclared class \MagpieRSS
Open

                    $temp['channel'] = $rss->channel;

Call to method __construct from undeclared class \MagpieRSS
Open

                    $rss = new MagpieRSS( $rawData );

Variable $temp was undeclared, but array fields are being added to it.
Open

                    $temp['channel'] = $rss->channel;

Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
Open

                                $vars['FEEDITEMTEXT'] = $tp->text_truncate($feeditemtext, $this->truncateCount, $this->truncateMore);

Reference to undeclared property \xmlClass->error (Did you mean expr->errors)
Open

                    if (NEWSFEED_DEBUG) echo $xml -> error;

Reference to instance property channel from undeclared class \MagpieRSS
Open

                            $newsfeed_des = $tp -> toDB($rss->channel['description']);

Invalid offset "title" of array type array{link:array|mixed|string|string[]}
Open

                    $vars['FEEDTITLE']          = "<a href='".$rss['channel']['link']."' rel='external'>".vartrue($rss['channel']['title'])."</a>";

Reference to instance property channel from undeclared class \MagpieRSS
Open

                        if($rss->channel['description'])

Suspicious type void of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                            if (NEWSFEED_DEBUG) echo NFLAN_48."<br /><br />".var_dump($dbData);

Reference to instance property items from undeclared class \MagpieRSS
Open

                        $temp['items'] = $rss->items;        // Unlimited items

Variable $ret was undeclared, but array fields are being added to it.
Open

            $ret['title'] = (!empty($NEWSFEED_MENU_CAPTION)) ? $NEWSFEED_MENU_CAPTION : '';

There are no issues that match your filters.

Category
Status