Function xoops_module_update_system
has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method xoops_module_update_system
has 141 lines of code (exceeds 25 allowed). Consider refactoring. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
The function xoops_module_update_system() has an NPath complexity of 15633216. The configured NPath complexity threshold is 200. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The function xoops_module_update_system() has 217 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Exclude checks
The function xoops_module_update_system() has a Cyclomatic Complexity of 33. The configured cyclomatic complexity threshold is 10. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
Missing class import via use statement (line '147', column '23'). Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'tinymce'));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '191', column '22'). Open
$tableObj = new icms_db_legacy_updater_Table($table);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '67', column '56'). Open
$duplicate_files = $tplfile_handler->getObjects(new icms_db_criteria_Item('tpl_id', "(" . implode(',', $tplids) . ")", "IN"));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '137', column '23'). Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'FCKeditor'));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '200', column '21'). Open
$criteria = new icms_db_criteria_Compo();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '146', column '20'). Open
$criteria = new icms_db_criteria_Compo();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '201', column '24'). Open
$criteria->add(new icms_db_criteria_Item('conf_name', $item));
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '211', column '17'). Open
$table = new icms_db_legacy_updater_Table($tabletoupdate);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '136', column '20'). Open
$criteria = new icms_db_criteria_Compo();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
icms_core_Filesystem::deleteRecursive($foldertoremove, true);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
icms_core_Filesystem::deleteRecursive(ICMS_EDITOR_PATH . '/FCKeditor', true);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
echo icms_core_Filesystem::deleteRecursive($foldertoremove, true). '</br>';
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Message' in method 'xoops_module_update_system'. Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms' in method 'xoops_module_update_system'. Open
$tplfile_handler = icms::handler('icms_view_template_file');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
icms_core_Filesystem::deleteFile($filetoremove);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
return icms_core_Filesystem::cleanFolders(array (
'templates_c' => ICMS_COMPILE_PATH . "/",
'cache' => ICMS_CACHE_PATH . "/"
), $CleanWritingFolders);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_db_legacy_Factory' in method 'xoops_module_update_system'. Open
$icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method xoops_module_update_system uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
echo $feedback;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
icms_core_Filesystem::deleteFile($filetoremove);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms_core_Filesystem' in method 'xoops_module_update_system'. Open
icms_core_Filesystem::deleteRecursive(ICMS_EDITOR_PATH . '/tinymce', true);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'icms' in method 'xoops_module_update_system'. Open
$module_handler = icms::handler('icms_module');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid unused local variables such as '$xoTheme'. Open
global $xoTheme;
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
TODO found Open
// TODO: make a generic file removal function.
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$tplfile_handler = icms::handler('icms_view_template_file');
- Exclude checks
Call to method dropFields
from undeclared class \icms_db_legacy_updater_Table
Open
$table->dropFields();
- Exclude checks
Reference to static property config
from undeclared class \icms
Open
icms::$config->deleteConfig($config[0]);
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_UPDATE_DB
Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Exclude checks
Call to method add
from undeclared class \icms_db_criteria_Compo
Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'FCKeditor'));
- Exclude checks
Call to method add
from undeclared class \icms_db_criteria_Compo
Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'tinymce'));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_legacy_updater_Table
Open
$tableObj = new icms_db_legacy_updater_Table($table);
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_MSG_FROM_112
Open
echo _DATABASEUPDATER_MSG_FROM_112;
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Compo
Open
$criteria = new icms_db_criteria_Compo();
- Exclude checks
Argument 1 (string)
is ?47|?48
but \icms_conv_nr2local()
takes int
defined at /code/htdocs/include/functions.php:1231
Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
while (list($tplid) = icms::$xoopsDB->fetchRow($result)) {
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Compo
Open
$criteria = new icms_db_criteria_Compo();
- Exclude checks
Call to method deleteRecursive
from undeclared class \icms_core_Filesystem
Open
echo icms_core_Filesystem::deleteRecursive($foldertoremove, true). '</br>';
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_UPDATE_ERR
Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_CURRENTVER
Open
echo sprintf(_DATABASEUPDATER_CURRENTVER, icms_conv_nr2local($dbVersion)) . '<br />';
- Exclude checks
Call to method deleteRecursive
from undeclared class \icms_core_Filesystem
Open
icms_core_Filesystem::deleteRecursive(ICMS_EDITOR_PATH . '/tinymce', true);
- Exclude checks
Reference to static property config
from undeclared class \icms
Open
$config = icms::$config->getConfigs($criteria);
- Exclude checks
Call to method add
from undeclared class \icms_db_criteria_Compo
Open
$criteria->add(new icms_db_criteria_Item('conf_name', $item));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$duplicate_files = $tplfile_handler->getObjects(new icms_db_criteria_Item('tpl_id', "(" . implode(',', $tplids) . ")", "IN"));
- Exclude checks
Call to method getDatabaseUpdater
from undeclared class \icms_db_legacy_Factory
Open
$icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();
- Exclude checks
Call to method deleteRecursive
from undeclared class \icms_core_Filesystem
Open
icms_core_Filesystem::deleteRecursive(ICMS_EDITOR_PATH . '/FCKeditor', true);
- Exclude checks
Call to method cleanFolders
from undeclared class \icms_core_Filesystem
Open
return icms_core_Filesystem::cleanFolders(array (
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$module_handler = icms::handler('icms_module');
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
$result = icms::$xoopsDB->query("SELECT t1.tpl_id FROM " . icms::$xoopsDB->prefix('tplfile') . " t1, " . icms::$xoopsDB->prefix('tplfile') . " t2 WHERE t1.tpl_module = t2.tpl_module AND t1.tpl_tplset=t2.tpl_tplset AND t1.tpl_file = t2.tpl_file AND t1.tpl_id > t2.tpl_id");
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Compo
Open
$criteria = new icms_db_criteria_Compo();
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'FCKeditor'));
- Exclude checks
Call to method exists
from undeclared class \icms_db_legacy_updater_Table
Open
if ($tableObj->exists()) {
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$criteria->add(new icms_db_criteria_Item('conf_value', 'tinymce'));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$criteria->add(new icms_db_criteria_Item('conf_name', $item));
- Exclude checks
Reference to static property config
from undeclared class \icms
Open
$config = icms::$config->getConfigs($criteria);
- Exclude checks
Call to method deleteFile
from undeclared class \icms_core_Filesystem
Open
icms_core_Filesystem::deleteFile($filetoremove);
- Exclude checks
Argument 1 (string)
is ?47|?48
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 />';
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_UPDATE_TO
Open
echo "<code>" . sprintf(_DATABASEUPDATER_UPDATE_TO, icms_conv_nr2local(ICMS_SYSTEM_DBVERSION)) . "<br />";
- Exclude checks
Call to method deleteRecursive
from undeclared class \icms_core_Filesystem
Open
icms_core_Filesystem::deleteRecursive($foldertoremove, true);
- Exclude checks
Call to method __construct
from undeclared class \icms_db_legacy_updater_Table
Open
$table = new icms_db_legacy_updater_Table($tabletoupdate);
- Exclude checks
Call to method fieldExists
from undeclared class \icms_db_legacy_updater_Table
Open
if ($table->fieldExists($column)) {
- Exclude checks
Call to method addDropedField
from undeclared class \icms_db_legacy_updater_Table
Open
$table->addDropedField($column);
- Exclude checks
Reference to static property config
from undeclared class \icms
Open
$config = icms::$config->getConfigs($criteria);
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Exclude checks
Call to method deleteFile
from undeclared class \icms_core_Filesystem
Open
icms_core_Filesystem::deleteFile($filetoremove);
- Exclude checks
Call to method getDropedFields
from undeclared class \icms_db_legacy_updater_Table
Open
if ($table->getDropedFields()) {
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
Open
echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';
- Exclude checks
Call to method dropTable
from undeclared class \icms_db_legacy_updater_Table
Open
$tableObj->dropTable();
- Exclude checks
Reference to undeclared constant \_DATABASEUPDATER_UPDATE_OK
Open
echo sprintf(_DATABASEUPDATER_UPDATE_OK, icms_conv_nr2local($newDbVersion)) . '<br />';
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
icms_core_Message::error(sprintf(_DATABASEUPDATER_UPDATE_ERR, icms_conv_nr2local($newDbVersion)), _DATABASEUPDATER_UPDATE_DB, TRUE);
- Exclude checks
Blank line found at start of control structure Open
if ($dbVersion < $newDbVersion) {
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
- Exclude checks
Inline control structures are not allowed Open
if ($dbVersion < 46) include 'update-14.php';
- Exclude checks
Inline control structures are not allowed Open
if (!$abortUpdate) $newDbVersion = 47;
- Exclude checks
Inline control structures are not allowed Open
if (!$abortUpdate) $newDbVersion = 48;
- Exclude checks
Closing brace indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(!defined('ICMS_INCLUDE_OPENID')) {
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 1 tabs, found 2 Open
try {
- Exclude checks
Line indented incorrectly; expected 4 tabs, found 5 Open
}
- Exclude checks
Line indented incorrectly; expected 2 tabs, found 3 Open
if ($dbVersion < $newDbVersion) {
- Exclude checks
Line indented incorrectly; expected 4 tabs, found 5 Open
if ($tableObj->exists()) {
- Exclude checks
Line indented incorrectly; expected 3 tabs, found 4 Open
foreach ($tablestodrop as $table) {
- Exclude checks
Closing brace indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 3 tabs, found 4 Open
}
- Exclude checks
The variable $duplicate_files is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $CleanWritingFolders is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $module_handler is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tplfile_handler is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $duplicate_files is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $removeFolders_150 is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $module_handler is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $installed_mods is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $CleanWritingFolders is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tplfile_handler is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $from_112 is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $from_112 is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $duplicate_files is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $removeFolders_150 is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $installed_mods is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tplfile_handler is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $duplicate_files is not named in camelCase. Open
function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
global $xoTheme;
$from_112 = $abortUpdate = false;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
Unexpected trailing spaces found. Open
- Exclude checks
Unexpected trailing spaces found. Open
- Exclude checks
Unexpected spaces found. Open
- Exclude checks