e107inc/e107

View on GitHub
e107_plugins/rss_menu/rss.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
Open

        $rss_title = $tp->toRss($tp->toHTML($pref['sitename'],'','defs')." : ".$tp->toHTML($rss_title,'','defs'));
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

        while($row = $sql->fetch())
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

    $row = $sql->fetch();
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                        if($row['custom'])
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                            $this -> rssItems[$k]['media'] = $row['media'];
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Argument 4 (options) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

                    <link rel='self' href='".$tp->toRss(e107::url('rss_menu','atom', array('rss_url'=>$this->contentType, 'rss_topicid'=>$this->topicid),'full'))."' />\n";
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

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

        $mime["mp3"] = "audio/mpeg";
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

if(!$sql->select('rss', '*', "rss_class != 2 AND rss_url='".$content_type."' ".$check_topic." AND rss_limit > 0 "))
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

        $row = $sql->fetch();
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Found a return statement with a value in the implementation of the magic method \rssCreate::__construct, expected void return type
Open

    public function __construct($content_type, $rss_type, $topic_id, $row)
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Variable $eplug_rss is undeclared
Open

                        if(!empty($eplug_rss['enc_type']))
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $ns is undeclared
Open

        $ns->tablerender(LAN_ERROR, RSS_LAN_ERROR_4);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                            $this -> rssItems[$k]['custom'] = $row['custom'];
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Saw an @param annotation for closing, but it was not found in the param list of function buildTag(string $name = '', array $attributes = null) : string
Open

     * @param bool $closing
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

    $sc = e107::getScBatch('rss_menu', true);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious array access to ?mixed
Open

                        if($row['media'])
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Argument 4 (options) is 'full' but \e107::url() takes array defined at /code/e107_handlers/e107_class.php:4225
Open

                <atom:link href=\"".$tp->toRss(e107::url('rss_menu','atom', array('rss_url'=>$this->contentType, 'rss_topicid'=>$this->topicid),'full'))."\" rel=\"self\" type=\"application/rss+xml\" />\n";
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Argument 2 (nostrip) is '' but \e_parse::toDB() takes bool|false defined at /code/e107_handlers/e_parse_class.php:508
Open

    $topic_id         = $tp->toDB($tmp[2],'');
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

    if(!$sql->select('rss', '*', "`rss_class` = 0 AND `rss_limit` > 0 AND `rss_topicid` NOT REGEXP ('\\\*') ORDER BY `rss_name`"))
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $sql is undeclared
Open

    if(!$sql->select('rss', '*', "rss_class != 2 AND rss_url='".$content_type."' ".$check_topic." AND rss_limit > 0 "))
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Argument 2 (nostrip) is '' but \e_parse::toDB() takes bool|false defined at /code/e107_handlers/e_parse_class.php:508
Open

    $topic_id         = $tp->toDB($_GET['topic'],'');
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $ns is undeclared
Open

        $ns->tablerender(RSS_MENU_L2, $text);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

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

$conversion[1]     = 'news';
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Call to undeclared method \e_db::db_getList
Open

                $tmp = $sql->db_getList();
Severity: Critical
Found in e107_plugins/rss_menu/rss.php by phan

Suspicious attempt to unset class \rssCreate's property e107 declared at /code/e107_plugins/rss_menu/rss.php:205 (This can be done, but is more commonly done for dynamic properties and Phan does not expect this)
Open

        unset($this->e107);
Severity: Info
Found in e107_plugins/rss_menu/rss.php by phan

Variable $ns is undeclared
Open

    $ns->tablerender(LAN_ERROR, RSS_LAN_ERROR_1);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $news_thumbail is undeclared (Did you mean $news_thumbnail)
Open

                            unset($news_thumbail);
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

There are no issues that match your filters.

Category
Status