e107inc/e107

View on GitHub
e107_handlers/news_class.php

Summary

Maintainability
A
0 mins
Test Coverage
F
48%

Argument 2 (str) is null but \explode() takes string
Open

        $tmp = explode('|', $parm, 2);
Severity: Minor
Found in e107_handlers/news_class.php by phan

Call to undeclared method \e_object::setCacheString
Open

        $this->setParam('model_class', 'e_news_category_item')
Severity: Critical
Found in e107_handlers/news_class.php by phan

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

        if (isset($logData['news_extended'])) $logData['news_extended'] = $tp->text_truncate($tp->toDB($logData['news_extended']),300,'...');
Severity: Minor
Found in e107_handlers/news_class.php by phan

Returning type null but render() is declared to return string
Open

                return e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
Severity: Minor
Found in e107_handlers/news_class.php by phan

Argument 3 (subject) is 255 but \str_replace() takes array|string
Open

        $nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'";
Severity: Minor
Found in e107_handlers/news_class.php by phan

Call to undeclared method \e_object::setCacheString
Open

        $this->setParam('model_class', 'e_news_category_item')
Severity: Critical
Found in e107_handlers/news_class.php by phan

Argument 3 (subject) is 255 but \str_replace() takes array|string
Open

        $nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'";
Severity: Minor
Found in e107_handlers/news_class.php by phan

Call to undeclared function \news_list()
Open

                $NEWS_PARSE = news_list($news);
Severity: Critical
Found in e107_handlers/news_class.php by phan

Reference to undeclared constant \BULLET
Open

        $bullet = defined('BULLET') ? THEME_ABS.'images/'.BULLET : THEME_ABS.'images/bullet2.gif';
Severity: Minor
Found in e107_handlers/news_class.php by phan

Call to undeclared function \news_style()
Open

                    $NEWS_PARSE = news_style($news, $action, $param);
Severity: Critical
Found in e107_handlers/news_class.php by phan

Reference to undeclared constant \BULLET
Open

        $bullet = defined('BULLET') ? THEME_ABS.'images/'.BULLET : THEME_ABS.'images/bullet2.gif';
Severity: Minor
Found in e107_handlers/news_class.php by phan

Assigning null to property but \e_news_tree->_cache_string is string
Open

        $this->_cache_string = null; // disable sys cache, otherwise we get a new cache file every time the time() changes.
Severity: Minor
Found in e107_handlers/news_class.php by phan

Argument 3 (subject) is 255 but \str_replace() takes array|string
Open

        $nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'";
Severity: Minor
Found in e107_handlers/news_class.php by phan

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

        if (isset($logData['news_body'])) $logData['news_body'] = $tp->text_truncate($tp->toDB($logData['news_body']),300,'...');
Severity: Minor
Found in e107_handlers/news_class.php by phan

Returning type null but render() is declared to return string
Open

                return e107::getRender()->tablerender($caption, $ret, varset($parms['mode'], $mod), $return);
Severity: Minor
Found in e107_handlers/news_class.php by phan

There are no issues that match your filters.

Category
Status