e107inc/e107

View on GitHub
e107_handlers/e107_class.php

Summary

Maintainability
F
5 days
Test Coverage
F
54%

File e107_class.php has 3520 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

<?php
/*
 * e107 website system
 *
 * Copyright (C) 2008-2012 e107 Inc (e107.org)
Severity: Major
Found in e107_handlers/e107_class.php - About 4 days to fix

    Avoid too many return statements within this method.
    Open

                        return null;
    Severity: Major
    Found in e107_handlers/e107_class.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $libraryHandler->info($library);
      Severity: Major
      Found in e107_handlers/e107_class.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $libraryHandler->load($library, $variant, $types);
        Severity: Major
        Found in e107_handlers/e107_class.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $ret;
          Severity: Major
          Found in e107_handlers/e107_class.php - About 30 mins to fix

            Suspicious array access to nullable ?array
            Open

                        $host = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_HANDLER', $this->get_override_rel('HANDLERS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
            Open

                        $location = e107::getParser()->replaceConstants($location, true);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (name) is 'og:url' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
            Open

                            self::meta('og:url', $url);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
            Open

                            self::meta('og:url', $url);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_DOWNLOAD', $this->get_override_rel('DOWNLOADS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'userclass_id', but expected the index to be of type int
            Open

                                if(!$inclass && check_class($fp_class['userclass_id']))
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (regpath) is null but \e107::getSingleton() takes string defined at /code/e107_handlers/e107_class.php:1130
            Open

                    return self::getSingleton('e107Email', true, null, $overrides);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type null but getAddon() is declared to return object
            Open

                        return null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to ?mixed
            Open

                                            $v['alias'] = $obj->alias;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type false but includeLan() is declared to return string
            Open

                            return false;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type false but url() is declared to return string
            Open

                        return false;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE_IMAGE', $this->get_override_rel('CACHE_IMAGE'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "SYSTEM_DIRECTORY" of array type array{}
            Open

                    if(strpos($this->e107_dirs['SYSTEM_DIRECTORY'],$this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (haystack) is null but \strpos() takes string
            Open

                    if(strpos($this->e107_dirs['SYSTEM_DIRECTORY'],$this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (pluginName) is string but \e_parse_shortcode::getScObject() takes null defined at /code/e107_handlers/shortcode_handler.php:363
            Open

                    return self::getScParser()->getScObject($className.'_shortcodes', $pluginName, $overrideClass);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type null but getAddon() is declared to return object
            Open

                            return null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (default) is false but \e107::getRegistry() takes null defined at /code/e107_handlers/e107_class.php:865
            Open

                        return self::getRegistry('core/e107/route', false);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type void but schema() is declared to return bool|string
            Open

                    return self::setRegistry('core/e107/schema',$json);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Call to method __construct from undeclared class \MatthiasMullie\Minify\JS
            Open

                        $minifier = new MatthiasMullie\Minify\JS($js);
            Severity: Critical
            Found in e107_handlers/e107_class.php by phan

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

                            $searchPath[1] = e_PLUGIN.$unitName.'/languages/'.$adminLan.'_admin_'.$unitName.'.php';
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_SYSTEM_BASE', $this->get_override_rel('SYSTEM_BASE'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (index) is null but \e_plugin_pref::getPref() takes int defined at /code/e107_handlers/pref_class.php:102
            Open

                    return self::getPlugConfig($plug_name)->getPref($pref_name, $default, $index);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type false but includeLan() is declared to return string
            Open

                            return false;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (default) is false but \e107::getRegistry() takes null defined at /code/e107_handlers/e107_class.php:865
            Open

                        return self::getRegistry('core/e107/schema', false);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Call to method minify from undeclared class \MatthiasMullie\Minify\JS
            Open

                        $minified = $minifier->minify();
            Severity: Critical
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (value) is 1 but \e107::ini_set() takes string defined at /code/e107_handlers/e107_class.php:5819
            Open

                    self::ini_set('session.cookie_httponly',  1); // cookie won't be accessible by scripting languages, such as JavaScript. Can effectively help to reduce identity theft through XSS attacks
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_TEMP', $this->get_override_rel('TEMP'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

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

                        $this->e107_dirs['CACHE_DIRECTORY'] = $this->e107_dirs['SYSTEM_DIRECTORY']."cache/"; // multisite support.
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_PLUGIN', $this->get_override_rel('PLUGINS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB_CSS', $this->get_override_rel('WEB_CSS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (index) is null but \e_core_pref::getPref() takes int defined at /code/e107_handlers/pref_class.php:102
            Open

                    $tprefs = self::getConfig()->getPref('sitetheme_pref'.$legacy_pref_name, $default, $index);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type false but _getTemplate() is declared to return array|string
            Open

                    return ($ret && is_array($ret) && isset($ret[$key])) ? $ret[$key] : false;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type string but coreLan() is declared to return bool|null
            Open

                    return self::includeLan($path);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (theme) is null but \e107::themeLan() takes string defined at /code/e107_handlers/e107_class.php:3923
            Open

                            $result = self::themeLan($fname, null,  $options);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Saw possibly unextractable annotation for a fragment of comment '* @param bool/string $val if null, return current value, otherwise define editor to use': after bool, did not see an element name (will guess based on comment order)
            Open

                 * @param bool/string $val if null, return current value, otherwise define editor to use
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Variable $subdomain is undeclared
            Open

                    define("e_SUBDOMAIN", ($subdomain) ?: false);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_FILE', $this->get_override_rel('FILES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA', $this->get_override_rel('MEDIA'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (haystack) is null but \strpos() takes string
            Open

                    if(strpos($this->e107_dirs['MEDIA_DIRECTORY'],$this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (plug_name) is null but \e107::getTemplateInfo() takes string defined at /code/e107_handlers/e107_class.php:3545
            Open

                        $tmp_info = self::getTemplateInfo(null, $template_id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

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

                            $searchPath[1] = e_THEME.$unitName.'/languages/'.e_LANGUAGE.'_'.$unitName.'.php';
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CORE', $this->get_override_rel('CORE'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'userclass_id', but expected the index to be of type int
            Open

                                    $location = $fpref[$fp_class['userclass_id']];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "CACHE_DIRECTORY" of array type array{}
            Open

                    if(strpos($this->e107_dirs['CACHE_DIRECTORY'], $this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (index) is null but \e_core_pref::getPref() takes int defined at /code/e107_handlers/pref_class.php:102
            Open

                    return self::getConfig()->getPref($pref_name, $default, $index);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (value) is 1 but \e107::ini_set() takes string defined at /code/e107_handlers/e107_class.php:5819
            Open

                    self::ini_set('session.use_only_cookies', 1);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_UPLOAD', $this->get_override_rel('UPLOADS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 4 (override) is string but \e107::getTemplate() takes bool|true defined at /code/e107_handlers/e107_class.php:3403
            Open

                        $tmp = self::getTemplate($plugin_name, $id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (name) is 'twitter:url' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
            Open

                            self::meta('twitter:url', $url);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

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

                            $searchPath[1] = e_PLUGIN.$unitName.'/languages/'.e_LANGUAGE.'_'.$unitName.'.php';
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE_CONTENT', $this->get_override_rel('CACHE_CONTENT'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "MEDIA_DIRECTORY" of array type array{}
            Open

                    if(strpos($this->e107_dirs['MEDIA_DIRECTORY'],$this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (regpath) is null but \e107::getSingleton() takes string defined at /code/e107_handlers/e107_class.php:1130
            Open

                    $ret = self::getSingleton('e_theme', true, null, array('themedir'=> $themedir, 'force'=> $clearCache));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
            Open

                            self::meta('twitter:url', $url);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type '' but filter_request() is declared to return bool|null
            Open

                        return '';
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_ADMIN', $this->get_override_rel('ADMIN'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_IMAGE', $this->get_override_rel('MEDIA_IMAGES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 4 (override) is string but \e107::getTemplateInfo() takes bool|true defined at /code/e107_handlers/e107_class.php:3545
            Open

                        $tmp_info = self::getTemplateInfo($plugin_name, $id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_BACKUP', $this->get_override_rel('BACKUP'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to ?mixed
            Open

                                            $v['alias'] = $obj->alias;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Saw a token Phan may have failed to parse after '* @return array;': after array, saw ';'
            Open

                 * @return array;
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Returning type string but plugLan() is declared to return bool|null
            Open

                        return $path;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

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

                            $searchPath[1] = e_PLUGIN.$unitName.'/languages/'.e_LANGUAGE.'_'.$type.'.php';
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                      define('e_BASE', $this->relative_base_path);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB_IMAGE', $this->get_override_rel('WEB_IMAGES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "MEDIA_DIRECTORY" of array type array{}
            Open

                        $this->e107_dirs['MEDIA_DIRECTORY'] .= $this->site_path."/"; // multisite support.
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (haystack) is null but \strpos() takes string
            Open

                    if(strpos($this->e107_dirs['CACHE_DIRECTORY'], $this->site_path) === false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "SYSTEM_DIRECTORY" of array type array{}
            Open

                        $this->e107_dirs['CACHE_DIRECTORY'] = $this->e107_dirs['SYSTEM_DIRECTORY']."cache/"; // multisite support.
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            @throws type of getHybridAuth has undeclared type \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
            Open

                public static function getHybridAuth($config = null)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (key) is null but \e107::getTemplateInfo() takes string defined at /code/e107_handlers/e107_class.php:3545
            Open

                        $tmp_info = self::getTemplateInfo(null, $template_id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type string but themeLan() is declared to return bool|null
            Open

                    return self::includeLan($path);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Saw a token Phan may have failed to parse after '* @param bool/string $val if null, return current value, otherwise define editor to use': after bool, saw '/'
            Open

                 * @param bool/string $val if null, return current value, otherwise define editor to use
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Return type of getHybridAuth() is undeclared type \Hybridauth\Hybridauth
            Open

                public static function getHybridAuth($config = null)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_THEME_ABS", $this->get_override_http('THEMES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type null but library() is declared to return array|bool
            Open

                                return null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Returning type null but getAddon() is declared to return object
            Open

                        return null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 2 (value) is 0 but \e107::ini_set() takes string defined at /code/e107_handlers/e107_class.php:5819
            Open

                    self::ini_set('session.use_trans_sid',    0);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "e107_version" of array type array{}
            Open

                    $curVersion = str_replace(' (git)', '', $e107info['e107_version']);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "SYSTEM_DIRECTORY" of array type array{}
            Open

                        $this->e107_dirs['SYSTEM_DIRECTORY'] .= $this->site_path."/"; // multisite support.
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Default value for string $override can't be false
            Open

                public static function title($title, $override=false)
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 4 (override) is string but \e107::getTemplateInfo() takes bool|true defined at /code/e107_handlers/e107_class.php:3545
            Open

                        $tmp_info = self::getTemplateInfo(null, $template_id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 3 (key) is null but \e107::getTemplateInfo() takes string defined at /code/e107_handlers/e107_class.php:3545
            Open

                        $tmp_info = self::getTemplateInfo($plugin_name, $id, null, $where, $merge);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_FILE', $this->get_override_rel('MEDIA_FILES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_SYSTEM', $this->get_override_rel('SYSTEM'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB_JS', $this->get_override_rel('WEB_JS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_FILE_ABS", $this->get_override_http('FILES')); // Deprecated!
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_JS_ABS', $this->get_override_http('WEB_JS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to nullable ?array
            Open

                        $page = substr(strrchr($_SERVER['PHP_SELF'], '/'), 1);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_MEDIA_ABS", $this->get_override_http('MEDIA'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $requestUri is undeclared
            Open

                    define('e_REQUEST_URI', str_replace(array("'", '"'), array('%27', '%22'), $requestUri)); // absolute http path + query string
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'url'           => $xdata['core'][0]['@attributes']['url'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'date'          => $xdata['core'][0]['@attributes']['date'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'date', but expected the index to be of type int
            Open

                            'date'          => $xdata['core'][0]['@attributes']['date'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'infourl', but expected the index to be of type int
            Open

                            'infourl'       => $xdata['core'][0]['@attributes']['infourl'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to nullable ?array
            Open

                    $eSelf = !empty($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME'];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'url', but expected the index to be of type int
            Open

                            'url'           => $xdata['core'][0]['@attributes']['url'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'version', but expected the index to be of type int
            Open

                        $newVersion = $xdata['core'][0]['@attributes']['version'];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_FILE_ABS', $this->get_override_http('MEDIA_FILES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                            'infourl'       => $xdata['core'][0]['@attributes']['infourl'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'description', but expected the index to be of type int
            Open

                            'description'   => $xdata['core'][0]['description'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE', $this->get_override_rel('CACHE'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_IMPORT', $this->get_override_rel('IMPORT'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_ICON', $this->get_override_rel('MEDIA_ICONS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_VIDEO_ABS', $this->get_override_http('MEDIA_VIDEOS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CSS_ABS', $this->get_override_http('WEB_CSS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE_IMAGE_ABS', $this->get_override_http('CACHE_IMAGE'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Assigning null to property but \e107::$_registry is array|array<string></string>
            Open

                    self::$_registry = null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Saw possibly unextractable annotation for a fragment of comment '* @param string theme|plugin': after string, did not see an element name (will guess based on comment order)
            Open

                 * @param string theme|plugin
            Severity: Info
            Found in e107_handlers/e107_class.php by phan

            Assigning null to property but \e107::$_instance is \e107
            Open

                    self::$_instance = null;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'description'   => $xdata['core'][0]['description'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE_URL', $this->get_override_rel('CACHE_URL'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_ICON_ABS', $this->get_override_http('MEDIA_ICONS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_AVATAR_DEFAULT', $this->get_override_rel('AVATARS_DEFAULT'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

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

                    $curVersion = str_replace(' (git)', '', $e107info['e107_version']);
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'version'       => $xdata['core'][0]['@attributes']['version'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_VIDEO', $this->get_override_rel('MEDIA_VIDEOS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB', $this->get_override_rel('WEB'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_AVATAR', $this->get_override_rel('AVATARS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                    if(empty($xdata['core'][0]['@attributes']['version']))
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'name', but expected the index to be of type int
            Open

                            'name'          => $xdata['core'][0]['@attributes']['name'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_IMAGE_ABS", $this->get_override_http('IMAGES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB_ABS', $this->get_override_http('WEB'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to nullable ?array
            Open

                            define('e_PAGE', basename($_SERVER['SCRIPT_FILENAME']));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                    if(empty($xdata['core'][0]['@attributes']['version']))
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                            'url'           => $xdata['core'][0]['@attributes']['url'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_CACHE_DB', $this->get_override_rel('CACHE_DB'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_PLUGIN_ABS", $this->get_override_http('PLUGINS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_MEDIA_IMAGE_ABS', $this->get_override_http('MEDIA_IMAGES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Suspicious array access to nullable ?array
            Open

                    $_self = $this->HTTP_SCHEME.'://'.$_SERVER['HTTP_HOST'].$eSelf;
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Invalid offset "e107_version" of array type array{}
            Open

                    $e107 = $tp->filter($e107info['e107_version'], 'version');
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Argument 1 (text) is null but \e_parse::filter() takes array|string defined at /code/e107_handlers/e_parse_class.php:5119
            Open

                    $e107 = $tp->filter($e107info['e107_version'], 'version');
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                            'date'          => $xdata['core'][0]['@attributes']['date'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                            'version'       => $xdata['core'][0]['@attributes']['version'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                        $newVersion = $xdata['core'][0]['@attributes']['version'];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'version', but expected the index to be of type int
            Open

                            'version'       => $xdata['core'][0]['@attributes']['version'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'infourl'       => $xdata['core'][0]['@attributes']['infourl'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_LOG', $this->get_override_rel('LOGS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define("e_ADMIN_ABS", $this->get_override_http('ADMIN'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_AVATAR_UPLOAD', $this->get_override_rel('AVATARS_UPLOAD'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_WEB_IMAGE_ABS', $this->get_override_http('WEB_IMAGES'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_AVATAR_ABS', $this->get_override_http('AVATARS'));
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type '\x40attributes', but expected the index to be of type int
            Open

                            'name'          => $xdata['core'][0]['@attributes']['name'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                        $newVersion = $xdata['core'][0]['@attributes']['version'];
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            When fetching an array index from a value of type string, found an array index of type 'core', but expected the index to be of type int
            Open

                            'name'          => $xdata['core'][0]['@attributes']['name'],
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            Variable $this is undeclared
            Open

                    define('e_DOCS', $this->get_override_rel('HELP')); // WILL CHANGE SOON - $this->_get_override_rel('DOCS')
            Severity: Minor
            Found in e107_handlers/e107_class.php by phan

            There are no issues that match your filters.

            Category
            Status