Missing class import via use statement (line '18', column '22'). Open
$usergroup = new UserGroupModel();
- 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 '75', column '22'). Open
$usergroup = new UserGroupModel();
- 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 validate_data uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$classcodes[$user_class['ClassName']] = 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 parameter $user_classes is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $users_classes is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 "user_class" is not in valid camel caps format Open
$user_class['line'] = $index + 1;
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
function save_data($users_classes, $deleteUsersNotInList = false)
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
$usergroup->subscribe_users_to_usergroup($class_id, $user_list, $deleteUsersNotInList);
- Exclude checks
Variable "user_classes" is not in valid camel caps format Open
function validate_data($user_classes)
- Exclude checks
Variable "mandatory_fields" is not in valid camel caps format Open
foreach ($mandatory_fields as $field) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
$class_name = $user_data['class_name'];
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
$return = save_data($users_classes, $deleteUsersNotInList);
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
global $purification_option_for_usernames;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (isset($user_class['ClassName']) && 0 != strlen($user_class['ClassName'])) {
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
global $purification_option_for_usernames;
- Exclude checks
Variable "user_table" is not in valid camel caps format Open
$sql1 = "SELECT user_id FROM $user_table
- Exclude checks
Variable "error_class_user" is not in valid camel caps format Open
$error_message .= get_lang('Line').' '.$error_class_user['line'].': '.$error_class_user['error'].'</b>';
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (!isset($user_class[$field]) || 0 == strlen($user_class[$field])) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang('This code does not exist').': '.$user_class['ClassName'];
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
foreach ($users_classes as $user_class) {
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
$csv_data[$id]['user_list'][] = $obj1->user_id;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$csv_data[$id]['class_name'] = $user_class['ClassName'];
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$form->addElement('header', $tool_name);
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Display::display_header($tool_name);
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
$error_message .= get_lang('Line').' '.$error_class_user['line'].': '.$error_class_user['error'].'</b>';
- Exclude checks
Variable "error_class_user" is not in valid camel caps format Open
$error_message .= get_lang('Line').' '.$error_class_user['line'].': '.$error_class_user['error'].'</b>';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$csv_data[$id]['user_list'][] = $obj1->user_id;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$csv_data[$id]['user_list_name'][] = $user_class['UserName'];
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
$errors = validate_data($users_classes);
- Exclude checks
Consider putting global function "validate_data" in a static class Open
function validate_data($user_classes)
- Exclude checks
Variable "user_classes" is not in valid camel caps format Open
foreach ($user_classes as $index => $user_class) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
foreach ($user_classes as $index => $user_class) {
- Exclude checks
Variable "user_table" is not in valid camel caps format Open
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
foreach ($users_classes as $user_class) {
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
$error_message .= "<br />";
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang('Unknown user').': '.$username;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
foreach ($csv_data as $class_id => $user_data) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
$user_list_name = $user_data['user_list_name'];
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Add users to a class').' CSV';
- Exclude checks
Variable "error_class_user" is not in valid camel caps format Open
foreach ($errors as $index => $error_class_user) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$exists = $usergroup->usergroup_exists($user_class['ClassName']);
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$errors[] = $user_class;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$classcodes[$user_class['ClassName']] = 1;
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
$username = UserManager::purify_username($user_class['UserName'], $purification_option_for_usernames);
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
$purification_option_for_usernames = false;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$errors[] = $user_class;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (isset($user_class['ClassName']) && 0 != strlen($user_class['ClassName'])) {
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
if (!empty($users_classes)) {
- Exclude checks
Variable "class_name" is not in valid camel caps format Open
get_lang('Class').': '.$class_name.'<br />',
- Exclude checks
Variable "users_classes" is not in valid camel caps format Open
$users_classes = parse_csv_data($_FILES['import_file']['tmp_name']);
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
$error_message .= "\n";
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang('This login is too long').': '.$user_class['UserName'];
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang('This login is too long').': '.$user_class['UserName'];
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
$csv_data[$id]['user_list_name'][] = $user_class['UserName'];
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
if (!empty($csv_data)) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (!isset($classcodes[$user_class['ClassName']])) {
- Exclude checks
Variable "purification_option_for_usernames" is not in valid camel caps format Open
WHERE username = '".Database::escape_string(UserManager::purify_username($user_class['UserName'], $purification_option_for_usernames))."'";
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$id = $usergroup->getIdByName($user_class['ClassName']);
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
$user_list = $user_data['user_list'];
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (!isset($user_class[$field]) || 0 == strlen($user_class[$field])) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (!UserManager::is_username_empty($user_class['UserName'])) {
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$errors[] = $user_class;
- Exclude checks
Consider putting global function "save_data" in a static class Open
function save_data($users_classes, $deleteUsersNotInList = false)
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
foreach ($csv_data as $class_id => $user_data) {
- Exclude checks
Variable "class_id" is not in valid camel caps format Open
$usergroup->subscribe_users_to_usergroup($class_id, $user_list, $deleteUsersNotInList);
- Exclude checks
Variable "user_list_name" is not in valid camel caps format Open
get_lang('Users').': '.implode(', ', $user_list_name)
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
$error_message = "\n";
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang($field.'Mandatory');
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$errors[] = $user_class;
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$user_class['error'] = get_lang('This code does not exist').': '.$user_class['ClassName'];
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
$username = UserManager::purify_username($user_class['UserName'], $purification_option_for_usernames);
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
$csv_data = [];
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
WHERE username = '".Database::escape_string(UserManager::purify_username($user_class['UserName'], $purification_option_for_usernames))."'";
- Exclude checks
Variable "class_id" is not in valid camel caps format Open
foreach ($csv_data as $class_id => $user_data) {
- Exclude checks
Variable "class_name" is not in valid camel caps format Open
$class_name = $user_data['class_name'];
- Exclude checks
Variable "user_class" is not in valid camel caps format Open
if (UserManager::is_username_too_long($user_class['UserName'])) {
- Exclude checks
Variable "csv_data" is not in valid camel caps format Open
$csv_data[$id]['class_name'] = $user_class['ClassName'];
- Exclude checks
Variable "user_list_name" is not in valid camel caps format Open
$user_list_name = $user_data['user_list_name'];
- Exclude checks
Variable "mandatory_fields" is not in valid camel caps format Open
$mandatory_fields = ['UserName', 'ClassName'];
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
$user_list = $user_data['user_list'];
- Exclude checks
Consider putting global function "parse_csv_data" in a static class Open
function parse_csv_data($file)
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
echo Display::return_message($error_message, 'error', false);
- Exclude checks
The variable $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $class_name is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_list is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $purification_option_for_usernames is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_table is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_list is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $users_classes is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $class_id is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_classes is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $purification_option_for_usernames is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $mandatory_fields is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $users_classes is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_table is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $class_name is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_list_name is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_list_name is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $class_id is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $purification_option_for_usernames is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $mandatory_fields is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $purification_option_for_usernames is not named in camelCase. Open
function validate_data($user_classes)
{
global $purification_option_for_usernames;
$errors = [];
$classcodes = [];
- 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 $user_class is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $csv_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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 $user_data is not named in camelCase. Open
function save_data($users_classes, $deleteUsersNotInList = false)
{
global $purification_option_for_usernames;
// Table definitions.
$user_table = Database::get_main_table(TABLE_MAIN_USER);
- 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();
}
}