e107inc/e107

View on GitHub
e107_admin/db.php

Summary

Maintainability
A
1 hr
Test Coverage
F
10%

Avoid too many return statements within this method.
Open

            return;
Severity: Major
Found in e107_admin/db.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return;
    Severity: Major
    Found in e107_admin/db.php - About 30 mins to fix

      Call to deprecated function \getperms() defined at /code/class2.php:1322
      Open

      if(!getperms('0'))
      Severity: Minor
      Found in e107_admin/db.php by phan

      Call to deprecated function \system_tools::multiSite() defined at /code/e107_admin/db.php:585
      Open

                  $this->multiSite();    
      Severity: Minor
      Found in e107_admin/db.php by phan

      Call to undeclared method \e_db::db_Query
      Open

                  if(!$sql2->db_Query($tab_query))
      Severity: Critical
      Found in e107_admin/db.php by phan

      Suspicious array access to nullable ?array
      Open

          if(varset($_GET['mode']) == 'backup') //FIXME - not displaying progress until complete. Use e-progress?
      Severity: Minor
      Found in e107_admin/db.php by phan

      Call to undeclared method \e_db::db_Query
      Open

                      if(!$sql->db_Query($q))
      Severity: Critical
      Found in e107_admin/db.php by phan

      Reference to undeclared constant \ADMIN_FALSE_ICON
      Open

              $error_glyph = array(ADMIN_TRUE_ICON, ADMIN_FALSE_ICON, ADMIN_WARNING_ICON,"<i style='display:inline-block;width:17px;height:16px;'> </i>");
      Severity: Minor
      Found in e107_admin/db.php by phan

      Argument 2 (value) is 1 but \e_form::button() takes array|string defined at /code/e107_handlers/form_handler.php:3861
      Open

                  $message .= $frm->button('githubSyncProcess',1,'delete', DBLAN_113);
      Severity: Minor
      Found in e107_admin/db.php by phan

      Reference to undeclared constant \ADMIN_WARNING_ICON
      Open

              $error_glyph = array(ADMIN_TRUE_ICON, ADMIN_FALSE_ICON, ADMIN_WARNING_ICON,"<i style='display:inline-block;width:17px;height:16px;'> </i>");
      Severity: Minor
      Found in e107_admin/db.php by phan

      Assigning string to property but \xmlClass->filePathDestination is false
      Open

              $xml->filePathDestination = EXPORT_PATH;
      Severity: Minor
      Found in e107_admin/db.php by phan

      Call to undeclared method \e_db::db_Query
      Open

                      if(!$sql->db_Query($q))
      Severity: Critical
      Found in e107_admin/db.php by phan

      Call to undeclared method \e_db::db_Query
      Open

              if(!$sql->db_Query($lastQry))
      Severity: Critical
      Found in e107_admin/db.php by phan

      Reference to undeclared constant \ADMIN_TRUE_ICON
      Open

              $error_glyph = array(ADMIN_TRUE_ICON, ADMIN_FALSE_ICON, ADMIN_WARNING_ICON,"<i style='display:inline-block;width:17px;height:16px;'> </i>");
      Severity: Minor
      Found in e107_admin/db.php by phan

      Argument 1 (text) is false but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
      Open

              $desinationFolder = $tp->replaceConstants($xml->filePathDestination);
      Severity: Minor
      Found in e107_admin/db.php by phan

      Default value for object $tables can't be array{}
      Open

      function exportXmlFile($prefs,$tables=array(),$plugPrefs=array(), $themePrefs=array(), $package=FALSE,$debug=FALSE)
      Severity: Minor
      Found in e107_admin/db.php by phan

      Argument 1 (xmlprefs) is object but \xmlClass::e107Export() takes array defined at /code/e107_handlers/xml_class.php:953
      Open

          if($xml->e107Export($prefs,$tables,$plugPrefs, $themePrefs, $mode))
      Severity: Minor
      Found in e107_admin/db.php by phan

      Default value for object $debug can't be false
      Open

      function exportXmlFile($prefs,$tables=array(),$plugPrefs=array(), $themePrefs=array(), $package=FALSE,$debug=FALSE)
      Severity: Minor
      Found in e107_admin/db.php by phan

      Argument 3 (action) is false but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4001
      Open

                                  ".$frm->admin_button('perform_utf8_convert', DBLAN_90,false,DBLAN_90,'class=btn-success&data-loading-text='.DBLAN_91)."
      Severity: Minor
      Found in e107_admin/db.php by phan

      Argument 2 (value) is 1 but \e_form::admin_button() takes string defined at /code/e107_handlers/form_handler.php:4001
      Open

                  ".$frm->admin_button('create_multisite',1,'submit','Create New Site')."
      Severity: Minor
      Found in e107_admin/db.php by phan

      There are no issues that match your filters.

      Category
      Status