ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/include/update-14.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method deleteRecursive from undeclared class \icms_core_Filesystem
Open

        icms_core_Filesystem::deleteRecursive(ICMS_ROOT_PATH . "/modules/system/templates/admin", true);

Call to method __construct from undeclared class \icms_db_legacy_updater_Table
Open

        $table = new icms_db_legacy_updater_Table('config');

Variable $dbVersion is undeclared
Open

    if ($dbVersion < $newDbVersion) {

Call to method deleteFile from undeclared class \icms_core_Filesystem
Open

        icms_core_Filesystem::deleteFile(ICMS_ROOT_PATH . 'banners.php');

Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
Open

            echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

Argument 1 (string) is ?45|?46 but \icms_conv_nr2local() takes int defined at /code/htdocs/include/functions.php:1231
Open

        echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
Open

        echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';

Variable $dbVersion is undeclared
Open

if($dbVersion < 45) include 'update-13.php';

Call to method deleteFile from undeclared class \icms_core_Filesystem
Open

        icms_core_Filesystem::deleteFile(ICMS_ROOT_PATH . "/modules/system/admin/banners.php");

Variable $icmsDatabaseUpdater is undeclared
Open

            $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');

Call to method deleteRecursive from undeclared class \icms_core_Filesystem
Open

        icms_core_Filesystem::deleteRecursive(ICMS_ROOT_PATH . "/modules/system/admin/banners", true);

Call to method name from undeclared class \icms_db_legacy_updater_Table
Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX conf_mod_cat_id, ADD INDEX mod_cat_order(conf_modid, conf_catid, conf_order)", 'Successfully altered the indexes on table config', '');

Variable $abortUpdate is undeclared
Open

if (!$abortUpdate) $newDbVersion = 46;

Variable $icmsDatabaseUpdater is undeclared
Open

        $icmsDatabaseUpdater->runQuery("ALTER TABLE `" . $table->name() . "` DROP INDEX conf_mod_cat_id, ADD INDEX mod_cat_order(conf_modid, conf_catid, conf_order)", 'Successfully altered the indexes on table config', '');

Variable $icmsDatabaseUpdater is undeclared
Open

        $icmsDatabaseUpdater->updateModuleDBVersion($newDbVersion, 'system');

Variable $abortUpdate is undeclared
Open

    if (!$abortUpdate) {

Variable $dbVersion is undeclared
Open

    if ($dbVersion < $newDbVersion) {

Variable $abortUpdate is undeclared
Open

if (!$abortUpdate) $newDbVersion = 45;

Variable $abortUpdate is undeclared
Open

        if (!$abortUpdate) {

Inline control structures are not allowed
Open

if (!$abortUpdate) $newDbVersion = 46;

Inline control structures are not allowed
Open

if($dbVersion < 45) include 'update-13.php';

Inline control structures are not allowed
Open

if (!$abortUpdate) $newDbVersion = 45;

Expected 1 space after closing brace; newline found
Open

}

Expected 1 newline at end of file; 0 found
Open

}

Expected 1 space after IF keyword; 0 found
Open

if($dbVersion < 45) include 'update-13.php';

Expected 1 space after closing brace; newline found
Open

}

There are no issues that match your filters.

Category
Status