e107inc/e107

View on GitHub
e107_handlers/plugin_class.php

Summary

Maintainability
F
5 days
Test Coverage
F
55%

File plugin_class.php has 3572 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

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

    Avoid too many return statements within this method.
    Open

                return array('type'=> 'warning', 'msg'=>"Using deprecated method. See e_status.php in the forum plugin for an example.");    
    Severity: Major
    Found in e107_handlers/plugin_class.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

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

        Avoid too many return statements within this method.
        Open

                    return array('type'=> 'warning', 'msg'=>"Using deprecated method. See e_latest.php in the forum plugin for an example.");    
        Severity: Major
        Found in e107_handlers/plugin_class.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return array('type'=> 'warning', 'msg'=>"Using deprecated method. See e_status.php in the forum plugin for an example.");
          Severity: Major
          Found in e107_handlers/plugin_class.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                            return array('type'=> 'warning', 'msg'=>"Using deprecated method. See e_latest.php in the forum plugin for an example.");
                Severity: Major
                Found in e107_handlers/plugin_class.php - About 30 mins to fix

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

                       * @param string e_xxxx addon
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

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

                              if ($plugin_path == $plug_info['folder'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      if (vartrue($plug_info['@attributes']['lan']) && $pluginDBList[$plugin_path]['plugin_name'] != $plug_info['@attributes']['lan'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pluginDBList[$plugin_path]['plugin_name'] = $plug_info['@attributes']['lan'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $_installed = ($plug_info['@attributes']['installRequired'] == 'true' || $plug_info['@attributes']['installRequired'] == 1 ? 0 : 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                              'plugin_version'        => $tp->toDB($plug_info['@attributes']['version'], true),
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                      if ($plug_info['@attributes']['name'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pName = vartrue($plug_info['@attributes']['lan']) ? $plug_info['@attributes']['lan'] : $plug_info['@attributes']['name'] ;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Reference to undeclared property \e107->user_class
                  Open

                              $e107->user_class = new user_class_admin; // We need the extra methods of the admin extension
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pName = vartrue($plug_info['@attributes']['lan']) ? $plug_info['@attributes']['lan'] : $plug_info['@attributes']['name'] ;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 1 (no_cache) is '' but \e107_user_extended::parse_extended_xml() takes bool|false defined at /code/e107_handlers/user_extended_class.php:1527
                  Open

                              $preList = $this->module['ue']->parse_extended_xml(''); // passed value currently not used at all, could be file path in the near future
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107_user_extended::user_extended_get_categories() defined at /code/e107_handlers/user_extended_class.php:595
                  Open

                                  $cats = $this->module['ue']->user_extended_get_categories(false);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pluginDBList[$plugin_path]['plugin_category'] = (vartrue($plug_info['category'])) ? $plug_info['category'] : "misc";
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pluginDBList[$plugin_path]['plugin_name'] = $plug_info['@attributes']['lan'];
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                              'plugin_version'        => $tp->toDB($plug_info['@attributes']['version'], true),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $search[0] = "CREATE TABLE ";    $replace[0] = "CREATE TABLE ".MPREFIX;
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "link_desription" of array type array{link_owner:mixed}|array{}
                  Open

                                          'link_description'     => vartrue($options['link_desription']),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "link_sef" of array type array{link_owner:mixed}|array{}
                  Open

                                          'link_sefurl'         => vartrue($options['link_sef']),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "description" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          if(varset($ret['description']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "adminLinks" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{administration:array{icon:mixed}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{description:array{@value:mixed}}|array{description:array{@value:null}}|array{description:mixed,category:'misc'|mixed|string,folder:string,files:array,lan:false|mixed,@attributes:array{compatibility:array|string|string[]}|array{version:array|null|string|string[]}}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          $ret['administration']['caption'] = varset($ret['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "adminLinks" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{administration:array{caption:mixed}}|array{administration:array{icon:mixed}}|array{administration:array{iconSmall:mixed}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{description:array{@value:mixed}}|array{description:array{@value:null}}|array{description:mixed,category:'misc'|mixed|string,folder:string,files:array,lan:false|mixed,@attributes:array{compatibility:array|string|string[]}|array{version:array|null|string|string[]}}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          $ret['administration']['configFile'] = varset($ret['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $search[0] = "CREATE TABLE ";    $replace[0] = "CREATE TABLE ".MPREFIX;
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

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

                              $plug_perm['everyone'] = e_UC_PUBLIC;
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

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

                                          $pluginDBList[$plugin_path]['plugin_version'] = $plug_info['@attributes']['version'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "link_category" of array type array{link_owner:mixed}|array{}
                  Open

                                          'link_category'         => vartrue($options['link_category'],'1'),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "@attributes" of array type array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          $ret['@attributes']['version'] = $this->_fixVersion($ret['@attributes']['version']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "compatibility" of array type array{version:array|null|string|string[]}
                  Open

                          $ret['@attributes']['compatibility'] = $this->_fixCompat($ret['@attributes']['compatibility']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "adminLinks" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{description:array{@value:mixed}}|array{description:array{@value:null}}|array{description:mixed,category:'misc'|mixed|string,folder:string,files:array,lan:false|mixed,@attributes:array{compatibility:array|string|string[]}|array{version:array|null|string|string[]}}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          $ret['administration']['icon'] = varset($ret['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      if ($plug_info['@attributes']['name'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $plug['plug_action'] = 'scan'; // Make sure plugin.php knows what we're up to
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "link_function" of array type array{link_owner:mixed}|array{}
                  Open

                                          'link_function'         => vartrue($options['link_function']),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "description" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                                  $diz = $ret['description'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      if (vartrue($plug_info['@attributes']['lan']) && $pluginDBList[$plugin_path]['plugin_name'] != $plug_info['@attributes']['lan'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      if ($pluginDBList[$plugin_path]['plugin_category'] == '' || $pluginDBList[$plugin_path]['plugin_category'] != $plug_info['category'])
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                      if (($pluginDBList[$plugin_path]['plugin_installflag'] == 0) && ($pluginDBList[$plugin_path]['plugin_version'] != $plug_info['@attributes']['version']))
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                          $pluginDBList[$plugin_path]['plugin_version'] = $plug_info['@attributes']['version'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type string, found an array access index of type 'folder', but expected the index to be of type int
                  Open

                          $ret['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "adminLinks" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{administration:array{caption:mixed}}|array{administration:array{icon:mixed}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{description:array{@value:mixed}}|array{description:array{@value:null}}|array{description:mixed,category:'misc'|mixed|string,folder:string,files:array,lan:false|mixed,@attributes:array{compatibility:array|string|string[]}|array{version:array|null|string|string[]}}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                          $ret['administration']['iconSmall'] = varset($ret['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      if (($pluginDBList[$plugin_path]['plugin_installflag'] == 0) && ($pluginDBList[$plugin_path]['plugin_version'] != $plug_info['@attributes']['version']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                              'plugin_category'        => $this->manage_category($plug_info['category'])
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "link_icon" of array type array{link_owner:mixed}|array{}
                  Open

                                          'link_button'         => vartrue($options['link_icon']),
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Invalid offset "description" of array type array{@attributes:array{compatibility:array|string|string[]}}|array{@attributes:array{version:array|null|string|string[]}}|array{category:'misc'|mixed|string}|array{category:mixed,folder:string}|array{files:array}|array{folder:string}|array{lan:false|mixed}|string
                  Open

                              if (is_array($ret['description']))
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                          $pName = vartrue($plug_info['@attributes']['lan']) ? $plug_info['@attributes']['lan'] : $plug_info['@attributes']['name'] ;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Returning type false but getId() is declared to return int
                  Open

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

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

                                          $_installed = ($plug_info['@attributes']['installRequired'] == 'true' || $plug_info['@attributes']['installRequired'] == 1 ? 0 : 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                      if ($notify_prefs->isData('plugins/'.$eplug_folder))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlAdminLinks($function, $plug_vars['adminLinks']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['mainPrefs'])) //Core pref items <mainPrefs>
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['extendedFields']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 2 (pieces) is string but \implode() takes string[] when argument 1 is string
                  Open

                              $txt .= 'Removing all plugin comments: ('.implode(', ', $plug_vars['commentID']).')<br />';
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::db_Query_all
                  Open

                                              $status = $sql->db_Query_all($query) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
                  Severity: Critical
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::getServerInfo
                  Open

                                              if(isset($dv['@attributes']['min_version']) && (version_compare($dv['@attributes']['min_version'], $db->getServerInfo(), '<=') === false)
                  Severity: Critical
                  Found in e107_handlers/plugin_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

                          $shortcodeLegacyList = $fl->get_files(e_PLUGIN.$plugin_path, '\.sc$', "standard", 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array{files:array,menuName:mixed,readme:mixed,category:'misc'|mixed|string,folder:mixed|string,@attributes:array{compatibility:mixed}|array{date:mixed}|array{installRequired:''|'true'}|array{lang:mixed}|array{name:mixed}|array{version:mixed}|array{xhtmlcompliant:''|'true'},author:array{@attributes:array{email:mixed}}|array{@attributes:array{name:mixed}}|array{@attributes:array{url:mixed}},description:array{@attributes:array{lang:mixed}}|array{@value:mixed},mainPrefs:array{pref:array{0:array{@attributes:array{name:}}}}|array{pref:array{0:array{@value:mixed|null}}},administration:array{caption:mixed}|array{configFile:mixed}|array{icon:string|string[]}|array{iconSmall:string|string[]},adminLinks:array{link:array{0:array{@attributes:array{description:'Configure'}}}}|array{link:array{0:array{@attributes:array{icon:string|string[]}}}}|array{link:array{0:array{@attributes:array{iconSmall:string|string[]}}}}|array{link:array{0:array{@attributes:array{primary:'true'}}}}|array{link:array{0:array{@attributes:array{url:mixed}}}},siteLinks:array{link:array{0:array{@attributes:array{perm:mixed}}}}|array{link:array{0:array{@attributes:array{url:string}}}}|array{link:array{0:array{@value:mixed}}},userClasses:array{class:array{0:array{@attributes:array{description:}}}}|array{class:array{0:array{@attributes:array{name:}}}}} to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars = $ret;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'administration', but expected the index to be of type int
                  Open

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::db_Query_all
                  Open

                                      if (false === $sql->db_Query_all($tab))
                  Severity: Critical
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['adminLinks']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $this->XmlPrefs('core', $function, $plug_vars['mainPrefs']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                  if (isset($this->plug_vars['description']['@attributes']['lan']) && defined($this->plug_vars['description']['@attributes']['lan']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                                      $this->plug_vars['description']['@value'] = constant($this->plug_vars['description']['@attributes']['lan']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              require_once(e_PLUGIN.$eplug_folder.'/search/search_comments.php');
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 1 (tags) is string but \e107plugin::XmlDependencies() takes array defined at /code/e107_handlers/plugin_class.php:3585
                  Open

                              $canContinue = $this->XmlDependencies($plug_vars['dependencies']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['bbcodes']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $sql->update('plugin', "plugin_installflag = 1, plugin_addons = '{$eplug_addons}', plugin_version = '{$plug_vars['@attributes']['version']}', plugin_category ='".$this->manage_category($plug_vars['category'])."' WHERE plugin_id = ".$id);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if(!file_exists(e_PLUGIN. $plug_vars['folder']."/e_cron.php"))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::db_Query
                  Open

                                          $status = $sql->db_Query($query) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
                  Severity: Critical
                  Found in e107_handlers/plugin_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

                                      echo $plugin_path."/".$addon.".php - ".$passfail."<br />";
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $sqlList = $fl->get_files(e_PLUGIN.$plugin_path, '_sql\.php$', "standard", 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['mediaCategories']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                              $plug = e107plugin::getPluginRecord($id);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          if (varset($plug_vars['siteLinks']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                          $plug = e107plugin::getPluginRecord($dir);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $bbcodeList        = $fl->get_files(e_PLUGIN.$plugin_path, '\.bb$', "standard", 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              if (is_readable(e_PLUGIN.$plugin_path."/".$sc['fname']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlPrefs($plug['plugin_path'], $function, $plug_vars['pluginPrefs']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $shortcodeList = $fl->get_files(e_PLUGIN.$plugin_path.'/shortcodes/single', '\.php$', "standard", 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              if (is_readable(e_PLUGIN.$plugin_path."/shortcodes/single/".$sc['fname']))
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              if (is_readable(e_PLUGIN.$plugin_path."/".$bb['fname']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          if(varset($this->plug_vars['description']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                  if (isset($this->plug_vars['description']['@attributes']['lan']) && defined($this->plug_vars['description']['@attributes']['lan']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'description', but expected the index to be of type int
                  Open

                                      $this->plug_vars['description']['@value'] = constant($this->plug_vars['description']['@attributes']['lan']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      $this->plug_vars['description']['@value'] = constant($this->plug_vars['description']['@attributes']['lan']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'administration', but expected the index to be of type int
                  Open

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'administration', but expected the index to be of type int
                  Open

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'administration', but expected the index to be of type int
                  Open

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $default = file_exists(e_PLUGIN.$eplug_folder.'/e_search.php') ? TRUE : FALSE;
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $e_notify = file_exists(e_PLUGIN.$eplug_folder.'/e_notify.php') ? TRUE : FALSE;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlPrefs('core', $function, $plug_vars['mainPrefs']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlExtendedFields($function, $plug_vars['extendedFields']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['languageFiles']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlLanguageFiles($function, $plug_vars['languageFiles']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                           $xmlInstallStatus = $this->XmlInstallXml($function, $plug_vars['folder']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Default value for object $when can't be string
                  Open

                      function execute_function($path = null, $what = '', $when = '', $callbackData = null)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          if (varset($plug_vars['userClasses']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->addonMenu($plug_vars['folder'], $function, $plug_vars['files']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                  $sql->update('plugin', "plugin_installflag=0, plugin_version='{$eplug_version}' WHERE plugin_path='{$eplug_folder}' ");
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $ret['administration']['icon'] = str_replace($plugName."/","",$eplug_icon);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string>|array<string></string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['category'] = (isset($this->plug_vars['category'])) ? $this->manage_category($this->plug_vars['category']) : "misc";
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                              $plug = e107plugin::getPluginRecord($id); // Get plugin info from DB
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['pluginPrefs'])) //Plugin pref items <pluginPrefs>
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $txt .= 'Removing all plugin comments: ('.implode(', ', $plug_vars['commentID']).')<br />';
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                  $notify_prefs->removePref('plugins/'.$eplug_folder);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          $this->manage_notify($function, $plug_vars['folder']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 3 (fmask) is false but \e_media::import() takes string defined at /code/e107_handlers/media_class.php:81
                  Open

                                      e107::getMedia()->import($data['category'],e_PLUGIN.$folder, false,'min-size=20000'); 
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              e107::getMessage()->addDebug($plug_vars['folder']." crons removed successfully."); // No LAN necessary
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  string passed to foreach instead of array
                  Open

                          foreach($files as $file)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 3 (prefArray) is string but \e107plugin::XmlPrefs() takes array defined at /code/e107_handlers/plugin_class.php:4238
                  Open

                              $this->XmlPrefs('core', $function, $plug_vars['mainPrefs']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 2 (array) is string but \e107plugin::XmlUserClasses() takes array defined at /code/e107_handlers/plugin_class.php:4090
                  Open

                              $this->XmlUserClasses($function, $plug_vars['userClasses']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              echo $plugin_path." = ".implode(",", $p_addons)."<br />";
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $bbcodeClassList= $fl->get_files(e_PLUGIN.$plugin_path, '^bb_(.*)\.php$', "standard", 1);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $icon_src = e_PLUGIN.$plugName."/".$plug_vars['administration'][$sz];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $plugin_icon = $plug_vars['administration'][$sz] ? "<img src='{$icon_src}' alt='' class='icon S".intval($size)."' />" : $default;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $ret['administration']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'category', but expected the index to be of type int
                  Open

                          $this->plug_vars['category'] = (isset($this->plug_vars['category'])) ? $this->manage_category($this->plug_vars['category']) : "misc";
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string>|array<string></string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['category'] = (isset($this->plug_vars['category'])) ? $this->manage_category($this->plug_vars['category']) : "misc";
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              if (is_array($this->plug_vars['description']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                  $diz = $this->plug_vars['description'];
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              $notify_prefs->setPref('plugins/'.$eplug_folder, 1); //$notify_prefs['plugins'][$eplug_folder] = TRUE;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if (varset($plug_vars['userClasses']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          $this->addonMenu($this->plugFolder, $function, $plug_vars['files']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $p_installed[$plug['plugin_path']] = $plug_vars['@attributes']['version'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Returning type bool but XmlSiteLinks() is declared to return null
                  Open

                          return $status === E_MESSAGE_SUCCESS;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 2 (plug_vars) is false|string but \e107plugin::XmlSiteLinks() takes array defined at /code/e107_handlers/plugin_class.php:3825
                  Open

                              $this->XmlSiteLinks($function, $plug_vars);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Reference to undeclared property \e107plugin->action
                  Open

                                  $this->action = 'installed'; // Render plugin list.
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'folder', but expected the index to be of type int
                  Open

                          $this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['caption'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['description']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          if(e107::getDb()->delete('cron', 'cron_function LIKE "'. $plug_vars['folder'] . '::%"'))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                                  if(!empty($tag['bbcodes']['@attributes']['imgResize']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $this->XmlUserClasses($function, $plug_vars['userClasses']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                          $plug = e107plugin::getPluginRecord($id);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['folder'] = $plugName; // remove the need for <folder> tag in plugin.xml.
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                      $this->plug_vars['description']['@value'] = constant($this->plug_vars['description']['@attributes']['lan']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'description', but expected the index to be of type int
                  Open

                                  $this->plug_vars['description']['@value'] = $diz;        
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['administration']['iconSmall'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['iconSmall']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->XmlUserClasses($function, $plug_vars['userClasses']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Returning type null but install_plugin_xml() is declared to return bool
                  Open

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

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

                                      $data['owner']         = $folder;
                  Severity: Info
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                                  if(!empty($tag['bbcodes']['@attributes']['imgResize']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::parse_plugin_xml() defined at /code/e107_handlers/plugin_class.php:5402
                  Open

                              $ret = $this->parse_plugin_xml($plugName);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                                  $this->plug_vars['description']['@value'] = $diz;        
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Indirect variable ${(expr)} has invalid inner expression type array<int>|array<int>|array<int>|array{},</int></int></int> expected string/integer
                  Open

                          return (!$error ? true : (!empty($$error_data) ? implode('<br />', $error_data) : false));
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $prefvals[] = $varArray;
                  Severity: Info
                  Found in e107_handlers/plugin_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

                                  require_once(e_PLUGIN.$eplug_folder.'/e_notify.php');
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                              $plug = e107plugin::getPluginRecord($id); // Get plugin info from DB
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::parse_plugin_xml() defined at /code/e107_handlers/plugin_class.php:5402
                  Open

                          if ($canContinue && $this->parse_plugin_xml($plug['plugin_path']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $canContinue = $this->XmlDependencies($plug_vars['dependencies']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              foreach($plugInfo['dependencies'] as $dt => $da)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Returning type array<int>|array{}</int> but XmlExtendedFields() is declared to return null
                  Open

                              return $ret;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to deprecated function \e107plugin::getPluginRecord() defined at /code/e107_handlers/plugin_class.php:1965
                  Open

                          $plug = e107plugin::getPluginRecord($id);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $ret['adminLinks']['link'][0]['@attributes']['icon'] = str_replace($plugName."/","",$eplug_icon);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                                      $this->plug_vars['description']['@value'] = constant($this->plug_vars['description']['@attributes']['lan']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::db_Query_all
                  Open

                                      if (!$sql->db_Query_all($qry))
                  Severity: Critical
                  Found in e107_handlers/plugin_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

                          $comments = file_exists(e_PLUGIN.$eplug_folder.'/search/search_comments.php') ? TRUE : FALSE;
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                  $uninstall_notify = $notify_prefs->isData('plugins/'.$eplug_folder); //isset($notify_prefs['plugins'][$eplug_folder]) ? TRUE : FALSE;
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              require_once(e_PLUGIN.$eplug_folder.'/e_notify.php');
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $sql->update('plugin', "plugin_installflag = 0, plugin_addons = '{$eplug_addons}', plugin_version = '{$plug_vars['@attributes']['version']}', plugin_category ='".$this->manage_category($plug_vars['category'])."' WHERE plugin_id = ".$id);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                              $this->log($plug_vars['folder']." crons removed successfully."); // no LANs.
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 4 (options) is 'min-size=20000' but \e_media::import() takes array defined at /code/e107_handlers/media_class.php:81
                  Open

                                      e107::getMedia()->import($data['category'],e_PLUGIN.$folder, false,'min-size=20000'); 
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['files'] = preg_grep('/^([^.])/', scandir(e_PLUGIN.$plugName,SCANDIR_SORT_ASCENDING));
                  Severity: Minor
                  Found in e107_handlers/plugin_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 (isset($this->plug_vars['description']['@attributes']['lan']) && defined($this->plug_vars['description']['@attributes']['lan']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['administration']['icon'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['icon']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                                  foreach($tag['mediaCategories']['category'] as $v)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared method \e_db::db_Query
                  Open

                                      if (false === $sql->db_Query($tab))
                  Severity: Critical
                  Found in e107_handlers/plugin_class.php by phan

                  string passed to foreach instead of array
                  Open

                              foreach($plugInfo['dependencies'] as $dt => $da)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Default value for object $tag can't be string
                  Open

                      function XmlLanguageFiles($function, $tag='', $when = '')
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Call to undeclared function _install in callable
                  Open

                              $text .= call_user_func($func);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          if (varset($plug_vars['mainPrefs'])) //Core pref items <mainPrefs>
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              if (is_readable(e_PLUGIN.$plugin_path."/".$addonPHP))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $plugin_icon = $plug_vars['administration'][$sz] ? "<img src='{$icon_src}' alt='' class='icon S".intval($size)."' />" : $default;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                              $ret['adminLinks']['link'][0]['@attributes']['iconSmall'] = str_replace($plugName."/","",$eplug_icon_small);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array{files:array,menuName:mixed,readme:mixed,category:'misc'|mixed|string,folder:mixed,@attributes:array{compatibility:mixed}|array{date:mixed}|array{installRequired:''|'true'}|array{lang:mixed}|array{name:mixed}|array{version:mixed}|array{xhtmlcompliant:''|'true'},author:array{@attributes:array{email:mixed}}|array{@attributes:array{name:mixed}}|array{@attributes:array{url:mixed}},description:array{@attributes:array{lang:mixed}}|array{@value:mixed},mainPrefs:array{pref:array{0:array{@attributes:array{name:}}}}|array{pref:array{0:array{@value:mixed|null}}},administration:array{caption:mixed}|array{configFile:mixed}|array{icon:string|string[]}|array{iconSmall:string|string[]},adminLinks:array{link:array{0:array{@attributes:array{description:'Configure'}}}}|array{link:array{0:array{@attributes:array{icon:string|string[]}}}}|array{link:array{0:array{@attributes:array{iconSmall:string|string[]}}}}|array{link:array{0:array{@attributes:array{primary:'true'}}}}|array{link:array{0:array{@attributes:array{url:mixed}}}},siteLinks:array{link:array{0:array{@attributes:array{perm:mixed}}}}|array{link:array{0:array{@attributes:array{url:string}}}}|array{link:array{0:array{@value:mixed}}},userClasses:array{class:array{0:array{@attributes:array{description:}}}}|array{class:array{0:array{@attributes:array{name:}}}}} to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars = $ret;
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->XmlLanguageFiles($function, varset($plug_vars['languageFiles']), 'pre'); // First of all, see if there's a language file specific to install
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Argument 2 (plug_vars) is string but \e107plugin::XmlSiteLinks() takes array defined at /code/e107_handlers/plugin_class.php:3825
                  Open

                              $this->XmlSiteLinks($function, $plug_vars);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          $this->manage_search($function, $plug_vars['folder']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Suspicious array access to ?false|?string
                  Open

                          $folder = $tag['folder'];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Default value for object $what can't be string
                  Open

                      function execute_function($path = null, $what = '', $when = '', $callbackData = null)
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->addonMenu($plug_vars['folder'], $function, $plug_vars['files']);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                                      $file_text = file_get_contents(e_PLUGIN.$plugin_path."/".$addonPHP);
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                              if (is_readable(e_PLUGIN.$plugin_path."/".$esql['fname']))
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $icon_src = e_PLUGIN.$plugName."/".$plug_vars['administration'][$sz];
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  When appending to a value of type false|string, found an array access index of type 'files', but expected the index to be of type int
                  Open

                          $this->plug_vars['files'] = preg_grep('/^([^.])/', scandir(e_PLUGIN.$plugName,SCANDIR_SORT_ASCENDING));
                  Severity: Minor
                  Found in e107_handlers/plugin_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

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  Assigning array<string></string> to property but \e107plugin->plug_vars is false|string
                  Open

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

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

                          $this->plug_vars['administration']['configFile'] = varset($this->plug_vars['adminLinks']['link'][0]['@attributes']['url']);
                  Severity: Minor
                  Found in e107_handlers/plugin_class.php by phan

                  There are no issues that match your filters.

                  Category
                  Status