e107inc/e107

View on GitHub
e107_plugins/import/admin_import.php

Summary

Maintainability
A
1 hr
Test Coverage
F
22%

Avoid too many return statements within this method.
Open

                return false;
Severity: Major
Found in e107_plugins/import/admin_import.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return true;
    Severity: Major
    Found in e107_plugins/import/admin_import.php - About 30 mins to fix

      Argument 2 (fname) is true but \e107::lan() takes string defined at /code/e107_handlers/e107_class.php:3987
      Open

      e107::lan('import', true);
      Severity: Minor
      Found in e107_plugins/import/admin_import.php by phan

      Reference to undeclared property \import_main_ui->createUserExtended
      Open

                  $this->createUserExtended = true; 
      Severity: Minor
      Found in e107_plugins/import/admin_import.php by phan

      Reference to undeclared class \media_import
      Open

                  $exporter = new $v['classname'];        // Writes the output data
      Severity: Critical
      Found in e107_plugins/import/admin_import.php by phan

      Argument 2 (checked_enabled) is string|string[] but \e_form::radio_switch() takes bool|false defined at /code/e107_handlers/form_handler.php:3024
      Open

                      <td>".$frm->radio_switch('import_delete_existing_data', $_POST['import_delete_existing_data'])."
      Severity: Minor
      Found in e107_plugins/import/admin_import.php by phan

      Argument 3 (selected) is null but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
      Open

                  <td >".$frm->select('dbParamDatabase', $databases, null, array('required'=>1), LAN_SELECT."...")."</td>
      Severity: Minor
      Found in e107_plugins/import/admin_import.php by phan

      Method \import_main_ui::listPage is declared to return string but has no return value
      Open

          function listPage()
      Severity: Minor
      Found in e107_plugins/import/admin_import.php by phan

      Call to undeclared method \e_db::db_getList
      Open

              $databases = e107::getDb()->db_getList();
      Severity: Critical
      Found in e107_plugins/import/admin_import.php by phan

      There are no issues that match your filters.

      Category
      Status