listingModType accesses the super-global variable $GLOBALS. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
listingModcondition accesses the super-global variable $GLOBALS. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
listingModPrice accesses the super-global variable $GLOBALS. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
File options.php
has 443 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php declare(strict_types=1);
/*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
Method index
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
Function index
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 listingAddcondition
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingAddcondition($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
Method listingModPrice
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
Method listingAddPrice
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
Method listingAddType
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingAddType($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
Method listingModType
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
Method listingModcondition
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
The function index() has 126 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- Exclude checks
The function index() has an NPath complexity of 1000. The configured NPath complexity threshold is 200. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 index() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$xoopsConfig'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$xoopsConfig'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$xoopsConfig'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts;
- 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
Avoid unused local variables such as '$xoopsConfig'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$admin_lang'. Open
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts;
- 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
Avoid unused local variables such as '$myts'. Open
global $xoopsDB, $myts;
- 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
Avoid using static access to class '\XoopsModules\Adslight\Helper' in method 'listingAddType'. Open
$helper = Helper::getInstance();
- 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 listingAddType uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
if ('' === $type) {
$type = '! ! ? ! !';
}
- 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
The method listingAddPrice uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$nom_price = \htmlspecialchars($nom_price, ENT_QUOTES | ENT_HTML5);
if ('' === $nom_price) {
$nom_price = '! ! ? ! !';
}
- 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 '\XoopsModules\Adslight\Helper' in method 'listingDelType'. Open
$helper = Helper::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingAddcondition'. Open
$helper = Helper::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingDelPrice'. Open
$helper = Helper::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingDelcondition'. Open
$helper = Helper::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingModTypeS'. Open
$helper = Helper::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingAddPrice'. Open
$helper = Helper::getInstance();
- 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 '\Xmf\Module\Admin' in method 'index'. Open
$adminObject = Admin::getInstance();
- 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 '\XoopsModules\Adslight\Helper' in method 'listingModPriceS'. Open
$helper = Helper::getInstance();
- 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 listingAddcondition uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
if ('' === $type) {
$type = '! ! ? ! !';
}
- 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 '\XoopsModules\Adslight\Helper' in method 'listingModconditionS'. Open
$helper = Helper::getInstance();
- 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
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($numrows > 0) {
$nom_price = \htmlspecialchars($numrows, ENT_QUOTES | ENT_HTML5); //mb
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
// loadModuleAdminMenu(2, "");
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 230.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($numrows > 0) {
$nom_condition = \htmlspecialchars($numrows, ENT_QUOTES | ENT_HTML5); //mb
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 230.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
if ($numrows > 0) {
echo '<form method="post" action="options.php">
<b>' . _AM_ADSLIGHT_MODCONDITION . '</b></font><br><br>';
$sql = 'SELECT id_condition, nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . ' ORDER BY nom_condition';
$result8 = $xoopsDB->query($sql);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 184.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
if ($numrows > 0) {
echo '<form method="post" action="options.php">
<b>' . _AM_ADSLIGHT_MODTYPE . '</b></font><br><br>';
$sql = 'SELECT id_type, nom_type FROM ' . $xoopsDB->prefix('adslight_type') . ' ORDER BY nom_type';
$result2 = $xoopsDB->query($sql);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 184.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
if ($numrows > 0) {
echo '<form method="post" action="options.php">
<b>' . _AM_ADSLIGHT_MODPRICE . '</b></font><br><br>';
$sql = 'SELECT id_price, nom_price FROM ' . $xoopsDB->prefix('adslight_price') . ' ORDER BY nom_price';
$result3 = $xoopsDB->query($sql);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 184.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 117.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 117.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
The parameter $id_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $nom_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_condition is not named in camelCase. Open
function listingDelcondition($id_condition): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$id_condition = (int)$id_condition;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_price is not named in camelCase. Open
function listingDelPrice($id_price): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$sql = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $nom_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_type is not named in camelCase. Open
function listingDelType($id_type): void
{
global $xoopsDB;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $nom_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 33 and the first side effect is on line 27. Open
<?php declare(strict_types=1);
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
$sql = 'UPDATE ' . $xoopsDB->prefix('adslight_condition') . " SET nom_condition='{$nom_condition}' WHERE id_condition='{$id_condition}'";
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
- Exclude checks
Line exceeds 120 characters; contains 152 characters Open
echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORCONDITION . " {$nom_condition} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
echo "<table width='100%' border='0' cellspacing='1' cellpadding='8' style='border: 2px solid #DFE0E0;'><tr class='bg4'><td valign='top'>\n";
- Exclude checks
Line exceeds 120 characters; contains 144 characters Open
echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORPRICE . " {$nom_price} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
- Exclude checks
Line exceeds 120 characters; contains 142 characters Open
echo '<br><div style="text-align:center;"><b>' . _AM_ADSLIGHT_ERRORTYPE . " {$nom_type} " . _AM_ADSLIGHT_EXIST . '</b></div><br><br>';
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
$sql = 'UPDATE ' . $xoopsDB->prefix('adslight_type') . " SET nom_type='{$nom_type}' WHERE id_type='{$id_type}'";
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
$sql = 'SELECT nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . " WHERE id_condition={$id_condition}";
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
$sql = 'UPDATE ' . $xoopsDB->prefix('adslight_price') . " SET nom_price='{$nom_price}' WHERE id_price='{$id_price}'";
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
$sql = 'SELECT id_condition, nom_condition FROM ' . $xoopsDB->prefix('adslight_condition') . ' ORDER BY nom_condition';
- Exclude checks
The variable $nom_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingAddType($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
- 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 $nom_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $admin_lang is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $nom_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $admin_lang is not named in camelCase. Open
function listingAddType($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $nom_condition is not named in camelCase. Open
function listingAddcondition($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
- 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 $nom_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $id_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $nom_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $nom_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_type is not named in camelCase. Open
function listingDelType($id_type): void
{
global $xoopsDB;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $admin_lang is not named in camelCase. Open
function listingDelPrice($id_price): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$sql = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
- 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 $nom_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $id_type is not named in camelCase. Open
function listingDelType($id_type): void
{
global $xoopsDB;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $admin_lang is not named in camelCase. Open
function listingDelcondition($id_condition): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$id_condition = (int)$id_condition;
- 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 $nom_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingDelType($id_type): void
{
global $xoopsDB;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $id_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- 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 $id_condition is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $nom_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $id_price is not named in camelCase. Open
function listingDelPrice($id_price): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$sql = 'DELETE FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE id_price='{$id_price}'";
- 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 $admin_lang is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $nom_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $id_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingModTypeS($id_type, $nom_type): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_type = (int)$id_type;
- 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 $nom_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingAddType($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $admin_lang is not named in camelCase. Open
function listingAddcondition($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
- 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 $nom_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- 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 $id_condition is not named in camelCase. Open
function listingDelcondition($id_condition): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$id_condition = (int)$id_condition;
- 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 $id_condition is not named in camelCase. Open
function listingModcondition($id_condition): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $admin_lang is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $nom_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $id_price is not named in camelCase. Open
function listingModPriceS($id_price, $nom_price): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$id_price = (int)$id_price;
- 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 $nom_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $id_type is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $id_price is not named in camelCase. Open
function listingModPrice($id_price): void
{
global $xoopsDB, $myts;
// require_once __DIR__ . '/admin_header.php';
- 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 $nom_condition is not named in camelCase. Open
function listingAddcondition($type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$type = \htmlspecialchars($type, ENT_QUOTES | ENT_HTML5);
- 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 $nom_condition is not named in camelCase. Open
function listingModconditionS($id_condition, $nom_condition): void
{
global $xoopsDB, $myts;
$helper = Helper::getInstance();
$nom_condition = \htmlspecialchars($nom_condition, ENT_QUOTES | ENT_HTML5);
- 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 $id_condition is not named in camelCase. Open
function listingDelcondition($id_condition): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$id_condition = (int)$id_condition;
- 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 $id_price is not named in camelCase. Open
function index(): void
{
global $xoopsDB, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $id_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_type is not named in camelCase. Open
function listingModType($id_type): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
// require_once __DIR__ . '/admin_header.php';
xoops_cp_header();
- 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 $nom_price is not named in camelCase. Open
function listingAddPrice(string $nom_price): void
{
global $xoopsDB, $xoopsConfig, $myts, $admin_lang;
$helper = Helper::getInstance();
$sql = 'SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_price') . " WHERE nom_price='{$nom_price}'";
- 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 $id_condition is not named in camelCase. Open
function listingDelcondition($id_condition): void
{
global $xoopsDB, $admin_lang;
$helper = Helper::getInstance();
$id_condition = (int)$id_condition;
- 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();
}
}