public/main/inc/lib/formvalidator/Rule/CompareFields.php
The class HTML_QuickForm_Compare_Fields is not named in CamelCase. Open
Open
class HTML_QuickForm_Compare_Fields extends HTML_QuickForm_Rule_Compare
{
/**
* Function to check an array of fields.
*
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
The parameter $operator_and_max_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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
Missing parameter name Open
Open
* @param array of field names
- Exclude checks
Missing parameter name Open
Open
* @param string operator ==, >=, etc
- Exclude checks
Variable "operator_and_max_value" is not in valid camel caps format Open
Open
public function validate($values = [], $operator_and_max_value = null)
- Exclude checks
Variable "operator_and_max_value" is not in valid camel caps format Open
Open
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
- Exclude checks
Variable "final_value" is not in valid camel caps format Open
Open
return parent::validate([$final_value, $max_value], $operator);
- Exclude checks
Missing parameter name Open
Open
* @param string the value to compare
- Exclude checks
Variable "final_value" is not in valid camel caps format Open
Open
$final_value += $value;
- Exclude checks
Variable "final_value" is not in valid camel caps format Open
Open
$final_value = 0;
- Exclude checks
Variable "max_value" is not in valid camel caps format Open
Open
return parent::validate([$final_value, $max_value], $operator);
- Exclude checks
Variable "max_value" is not in valid camel caps format Open
Open
$max_value = $params[1];
- Exclude checks
Variable "operator_and_max_value" is not in valid camel caps format Open
Open
$params = explode('@', $operator_and_max_value);
- Exclude checks
Class name "HTML_QuickForm_Compare_Fields" is not in camel caps format Open
Open
class HTML_QuickForm_Compare_Fields extends HTML_QuickForm_Rule_Compare
- Exclude checks
The variable $final_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $operator_and_max_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $operator_and_max_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $max_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $final_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $final_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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 $max_value is not named in camelCase. Open
Open
public function validate($values = [], $operator_and_max_value = null)
{
if (is_array($values) && !empty($values) && !empty($operator_and_max_value)) {
$final_value = 0;
foreach ($values as $value) {
- 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();
}
}