The method saveFieldValues() has an NPath complexity of 2862010. The configured NPath complexity threshold is 200. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 method save() has an NPath complexity of 798. The configured NPath complexity threshold is 200. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 method get_values_by_handler_and_field_variable() has an NPath complexity of 516. The configured NPath complexity threshold is 200. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 class ExtraFieldValue has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13. Open
class ExtraFieldValue extends Model
{
public $type = '';
public $columns = [
'id',
- Read upRead up
- Exclude checks
CouplingBetweenObjects
Since: 1.1.0
A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability
Example
class Foo {
/**
* @var \foo\bar\X
*/
private $x = null;
/**
* @var \foo\bar\Y
*/
private $y = null;
/**
* @var \foo\bar\Z
*/
private $z = null;
public function setFoo(\Foo $foo) {}
public function setBar(\Bar $bar) {}
public function setBaz(\Baz $baz) {}
/**
* @return \SplObjectStorage
* @throws \OutOfRangeException
* @throws \InvalidArgumentException
* @throws \ErrorException
*/
public function process(\Iterator $it) {}
// ...
}
Source https://phpmd.org/rules/design.html#couplingbetweenobjects
Missing class import via use statement (line '121', column '27'). Open
$extraField = new ExtraField($this->type);
- 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 '601', column '49'). Open
$field_option = new ExtraFieldOption($this->type);
- 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 '511', column '35'). Open
$option = new ExtraFieldOption($this->type);
- 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 '47', column '27'). Open
$extraField = new ExtraField($this->type);
- 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 '614', column '49'). Open
$field_option = new ExtraFieldOption($this->type);
- 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 '585', column '48'). Open
$objEfOption = new ExtraFieldOption($this->type);
- 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 '572', column '49'). Open
$field_option = new ExtraFieldOption($this->type);
- 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 '1180', column '27'). Open
$extraField = new ExtraField($this->type);
- 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 '625', column '52'). Open
$objEfOption = new ExtraFieldOption($this->type);
- 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 '943', column '27'). Open
$extraField = new ExtraField($this->type);
- 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 '1182', column '32'). Open
$extraFieldValue = new ExtraFieldValue($this->type);
- 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 '726', column '45'). Open
$field_option = new ExtraFieldOption($this->type);
- 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 '753', column '48'). Open
$objEfOption = new ExtraFieldOption('user');
- 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 '739', column '45'). Open
$field_option = new ExtraFieldOption($this->type);
- 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
The method save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$value_to_insert = $value;
}
- 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 save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$field_values = self::get_values_by_handler_and_field_id(
$params['item_id'],
$params['field_id']
);
- 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 save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Update
/* Enable this when field_loggeable is introduced as a table field (2.0)
if ($extraFieldInfo['field_loggeable'] == 1) {
*/
- 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 save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return parent::save($params, $showQuery);
}
- 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 save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$optionId = $optionExists['id'];
}
- 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 save uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Try the variable
$extraFieldInfo = $extra_field->get_handler_field_info_by_field_variable(
$params['variable']
);
- 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 saveFieldValues uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$tags[] = $tagsResult;
}
- 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 get_item_id_from_field_variable_and_field_value uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$result = Database::fetch_assoc($result);
}
- 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 getAllValuesByItem uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if (ExtraField::FIELD_TYPE_TAG === $fieldType) {
$tagResult = [];
$tags = $em->getRepository(ExtraFieldRelTag::class)
->findBy(
- 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 unused parameters such as '$transform'. Open
$transform = false,
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
The parameter $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = false,
- 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 $field_variable is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = false,
- 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 $field_id is not named in camelCase. Open
public function searchValuesByField($tag, $field_id, $limit = 10)
{
$field_id = (int) $field_id;
$limit = (int) $limit;
$tag = Database::escape_string($tag);
- 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 $field_id is not named in camelCase. Open
public function delete_all_values_by_field_id($field_id)
{
$field_id = (int) $field_id;
$sql = "DELETE FROM {$this->table}
WHERE
- 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
Variable "field_values" is not in valid camel caps format Open
$field_values = self::getAllValuesByItemAndFieldAndValue(
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
item_id = '$item_id' AND
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Variable "table_handler_field" is not in valid camel caps format Open
$this->table_handler_field = Database::get_main_table(TABLE_EXTRA_FIELD);
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$extraFieldInfo = $this->getExtraField()->get_handler_field_info_by_field_variable($field_variable);
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$cropVariable = 'extra_'.$field_variable.'_crop_result';
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
- Exclude checks
Variable "extra_field_option_result" is not in valid camel caps format Open
$result['value'] = $extra_field_option_result[0]['display_text'];
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$resultsExist[$field_variable] = isset($value) && '' !== $value ? true : false;
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$value_to_insert = $value['extra_'.$extraFieldInfo['variable']].'::'.$value['extra_'.$extraFieldInfo['variable'].'_second'];
- Exclude checks
Variable "field_values" is not in valid camel caps format Open
$field_values = self::get_values_by_handler_and_field_id(
- Exclude checks
Variable "result_second" is not in valid camel caps format Open
$result['value'] .= $result_second['display_text'];
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable = $fieldDetails['variable'];
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$params['field_value'] = $value_to_insert;
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
field_id = $field_id AND
- Exclude checks
Variable "result_second" is not in valid camel caps format Open
$result_second = $field_option->get($options[1]);
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
field_id = $field_id AND
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result_second = $field_option->get($options[1]);
- Exclude checks
Variable "extra_field_option_result" is not in valid camel caps format Open
if (isset($extra_field_option_result[0])) {
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$fieldVariableWithExtra = 'extra_'.$field_variable;
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
if (!in_array($field_variable, $saveOnlyThisFields)) {
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
if (isset($value['extra_'.$field_variable])) {
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$value_to_insert = implode(';', $value);
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$value_to_insert = $value;
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$field_option = new ExtraFieldOption($this->type);
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$extra_field_option_result = $field_option->get_field_option_by_field_and_option(
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$field_option = new ExtraFieldOption($this->type);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
$item_id = Database::escape_string($item_id);
- Exclude checks
Variable "extra_field" is not in valid camel caps format Open
$extra_field = $this->getExtraField();
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result = $field_option->get($options[0]);
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
public function searchValuesByField($tag, $field_id, $limit = 10)
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
$item_id = (int) $item_id;
- Exclude checks
Method name "ExtraFieldValue::get_count" is not in camel caps format Open
public function get_count()
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
if (in_array($field_variable, $avoidFields)) {
- Exclude checks
Variable "field_values" is not in valid camel caps format Open
if (empty($field_values)) {
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
$item_id = Database::escape_string($item_id);
- Exclude checks
Method name "ExtraFieldValue::get_values_by_handler_and_field_variable" is not in camel caps format Open
public function get_values_by_handler_and_field_variable(
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable = Database::escape_string($field_variable);
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$params['field_value'] = $value_to_insert;
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$value_to_insert = null;
- Exclude checks
Variable "field_values" is not in valid camel caps format Open
$params['id'] = $field_values['id'];
- Exclude checks
Variable "value_to_insert" is not in valid camel caps format Open
$value_to_insert = null;
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result = $field_option->get($options[0]);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
$item_id,
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable,
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$commentVariable = 'extra_'.$field_variable.'_comment';
- Exclude checks
Variable "extra_field" is not in valid camel caps format Open
$extraFieldInfo = $extra_field->get($params['field_id']);
- Exclude checks
Method name "ExtraFieldValue::get_values_by_handler_and_field_id" is not in camel caps format Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
- Exclude checks
Variable "extra_field_option_result" is not in valid camel caps format Open
$extra_field_option_result = $field_option->get_field_option_by_field_and_option(
- Exclude checks
Variable "extra_field" is not in valid camel caps format Open
$extraFieldInfo = $extra_field->get_handler_field_info_by_field_variable(
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$field_option = new ExtraFieldOption($this->type);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
$item_id = (int) $item_id;
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable = Database::escape_string($field_variable);
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
- Exclude checks
Variable "item_id" is not in valid camel caps format Open
item_id = '$item_id' AND
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$field_option = new ExtraFieldOption($this->type);
- Exclude checks
Doc comment for parameter $useLike does not match actual variable name $all Open
* @param bool $useLike
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result = $field_option->get($options[0]);
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Variable "result_second" is not in valid camel caps format Open
$result['value'] .= $result_second['display_text'];
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
field_id = $field_id ";
- Exclude checks
Method name "ExtraFieldValue::get_item_id_from_field_variable_and_field_value" is not in camel caps format Open
public function get_item_id_from_field_variable_and_field_value(
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
public function delete_all_values_by_field_id($field_id)
- Exclude checks
Method name "ExtraFieldValue::delete_all_values_by_field_id" is not in camel caps format Open
public function delete_all_values_by_field_id($field_id)
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
variable = '".$field_variable."' AND
- Exclude checks
Variable "result_second" is not in valid camel caps format Open
$result_second = $field_option->get($options[1]);
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$field_option = new ExtraFieldOption($this->type);
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result_second = $field_option->get($options[1]);
- Exclude checks
Variable "field_id" is not in valid camel caps format Open
$field_id = (int) $field_id;
- Exclude checks
Missing function doc comment Open
public function copy($sourceId, $destinationId)
- Exclude checks
Variable "field_option" is not in valid camel caps format Open
$result = $field_option->get($options[0]);
- Exclude checks
The variable $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $extra_field is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_values is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $result_second is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $extra_field_option_result is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_values is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $result_second is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_values is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $extra_field_option_result is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $extra_field_option_result is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $extra_field is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_values is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $extra_field is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $value_to_insert is not named in camelCase. Open
public function save($params, $showQuery = false)
{
$extra_field = $this->getExtraField();
// Setting value to insert.
- 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 $field_variable is not named in camelCase. Open
public function saveFieldValues(
$params,
$onlySubmittedFields = false,
$showQuery = false,
$saveOnlyThisFields = [],
- 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 $field_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- 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 $field_id is not named in camelCase. Open
public function delete_all_values_by_field_id($field_id)
{
$field_id = (int) $field_id;
$sql = "DELETE FROM {$this->table}
WHERE
- 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_id is not named in camelCase. Open
public function delete_all_values_by_field_id($field_id)
{
$field_id = (int) $field_id;
$sql = "DELETE FROM {$this->table}
WHERE
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_id is not named in camelCase. Open
public function searchValuesByField($tag, $field_id, $limit = 10)
{
$field_id = (int) $field_id;
$limit = (int) $limit;
$tag = Database::escape_string($tag);
- 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 $field_id is not named in camelCase. Open
public function delete_all_values_by_field_id($field_id)
{
$field_id = (int) $field_id;
$sql = "DELETE FROM {$this->table}
WHERE
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $result_second is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $item_id is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_variable is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_id is not named in camelCase. Open
public function searchValuesByField($tag, $field_id, $limit = 10)
{
$field_id = (int) $field_id;
$limit = (int) $limit;
$tag = Database::escape_string($tag);
- 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 $result_second is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_variable is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_variable is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 $field_id is not named in camelCase. Open
public function searchValuesByField($tag, $field_id, $limit = 10)
{
$field_id = (int) $field_id;
$limit = (int) $limit;
$tag = Database::escape_string($tag);
- 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 $field_option is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = 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 method get_count is not named in camelCase. Open
public function get_count()
{
$em = Database::getManager();
$query = $em->getRepository(ExtraFieldValues::class)->createQueryBuilder('e');
$query->select('count(e.id)');
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_values_by_handler_and_field_id is not named in camelCase. Open
public function get_values_by_handler_and_field_id($item_id, $field_id, $transform = false)
{
$field_id = (int) $field_id;
$item_id = Database::escape_string($item_id);
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_values_by_handler_and_field_variable is not named in camelCase. Open
public function get_values_by_handler_and_field_variable(
$item_id,
$field_variable,
$transform = false,
$filterByVisibility = false,
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method get_item_id_from_field_variable_and_field_value is not named in camelCase. Open
public function get_item_id_from_field_variable_and_field_value(
$variable,
$value,
$transform = false,
$last = false,
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method delete_all_values_by_field_id is not named in camelCase. Open
public function delete_all_values_by_field_id($field_id)
{
$field_id = (int) $field_id;
$sql = "DELETE FROM {$this->table}
WHERE
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}