The method send_message() has an NPath complexity of 587155200. The configured NPath complexity threshold is 200. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 display_message_for_group() has an NPath complexity of 74496. The configured NPath complexity threshold is 200. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 send_message has 16 parameters. Consider reducing the number of parameters to less than 10. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- Exclude checks
The method display_messages_for_group() has an NPath complexity of 335. The configured NPath complexity threshold is 200. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 saveMessageAttachmentFile() has an NPath complexity of 540. The configured NPath complexity threshold is 200. Open
public static function saveMessageAttachmentFile($file, $comment, Message $message)
{
// Try to add an extension to the file if it hasn't one
$type = $file['type'] ?? '';
if (empty($type)) {
- 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
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
$mail_queue[$i]['time'] = $timeMatches[1].$timeMatches[2];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
$mail_queue[$i]['mail'] = $emailMatches[2];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
$fullMail = $base.$mail_queue[$i]['code'];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$parameters' which will lead to PHP notices. Open
$table->set_additional_parameters($parameters);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
$mail_queue[$i]['code'] = $codeMatches[2];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
return array_reverse($mail_queue);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$parameters' which will lead to PHP notices. Open
$parameters['f'] = 'social';
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$mail_queue' which will lead to PHP notices. Open
$mail_queue[$i]['reason'] = $detailsMatches[3];
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
The class MessageManager has a coupling between objects value of 21. Consider to reduce the number of dependencies under 13. Open
class MessageManager
{
public static function getMessagesAboutUserToString(User $user, string $url = ''): string
{
$currentUserId = api_get_user_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 '1261', column '21'). Open
$form = new FormValidator('send_message');
- 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 '1381', column '28'). Open
$tplMailBody = new Template(
- 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 '1426', column '28'). Open
$tplMailBody = new Template(
- 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 '1459', column '36'). Open
$mailTemplateManager = new MailTemplateManager();
- 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 '382', column '38'). 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 '1282', column '21'). Open
$form = new FormValidator('send_invitation');
- 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 '1447', column '33'). Open
$extraFieldValues = new ExtraFieldValue('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 '1303', column '22'). Open
$table = new SortableTable(
- 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 '353', column '37'). Open
$notification = new Notification();
- 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 '174', column '36'). Open
$extraFieldValue = new ExtraFieldValue('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 '1354', column '21'). Open
$form = new FormValidator(
- 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 sendNotificationOfNewRegisteredUserApproval uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// custom procedure to load a template as a string (doesn't use cache so may slow down)
$template = $tplMailBody->twig->createTemplate($templateText);
$emailbody = $template->render($tplMailBody->params);
}
- 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 display_message_for_group uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$date = '<div class="date"> '
."$iconCalendar $langCreated "
.Display::dateToStringAgoAndLongDate($topic['send_date'])
.'</div>';
- 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 sendNotificationOfNewRegisteredUserApproval uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$admins = UserManager::get_all_administrators();
foreach ($admins as $admin_info) {
self::send_message(
$admin_info['user_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 send_message uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$usergroup = new UserGroupModel();
$group_info = $usergroup->get($group_id);
$group_info['topic_id'] = $topic_id;
$group_info['msg_id'] = $messageId;
- 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 send_message uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$totalFileSize += $fileSize;
}
- 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 display_messages_for_group uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$date .= '<i class="fa fa-calendar"></i> '.get_lang(
'Created'
).' '.Display::dateToStringAgoAndLongDate($topic['send_date']);
}
- 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 send_message uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$group = Container::getUsergroupRepository()->find($group_id);
$message = (new Message())
->setSender($userSender)
- 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 display_messages_for_group uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$count = 0;
}
- 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 sendMessageToAllUsersInCourse uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Course-session students and course session coaches
$users = CourseManager::get_user_list_from_course_code($course->getCode(), $sessionId);
}
- 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 display_message_for_group uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$date = '<div class="date"> '
."$iconCalendar $langCreated "
.Display::dateToStringAgoAndLongDate($main_message['send_date'])
.'</div>';
- 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 display_message_for_group uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$indent = (int) $topic['indent_cnt'] * $base_padding + $base_padding;
}
- 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 local variables such as '$x'. Open
$x = 0;
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$index'. Open
foreach ($topics as $index => $topic) {
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
Avoid unused local variables such as '$field'. Open
foreach ($userExtraFields as $field => $value) {
- Read upRead up
- Exclude checks
UnusedLocalVariable
Since: 0.2
Detects when a local variable is declared and/or assigned, but not used.
Example
class Foo {
public function doSomething()
{
$i = 5; // Unused
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable
The parameter $sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $parent_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $topic_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $message_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $sender_id is not named in camelCase. Open
public static function send_message_simple(
$receiverUserId,
$subject,
$message,
$sender_id = 0,
- 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 $first_seed is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 "topic_id" is not in valid camel caps format Open
$topic_id = (int) $topic_id;
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (empty($subject) && empty($group_id)) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info['msg_id'] = $messageId;
- Exclude checks
Variable "new_file_name" is not in valid camel caps format Open
$new_file_name = add_ext_on_mime(stripslashes($file['name']), $type);
- Exclude checks
Method name "MessageManager::get_messages_by_group_by_message" is not in camel caps format Open
public static function get_messages_by_group_by_message($group_id, $message_id)
- Exclude checks
Variable "condition_limit" is not in valid camel caps format Open
$condition_limit = '';
- Exclude checks
Missing class doc comment Open
class MessageManager
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "user_sender_id" is not in valid camel caps format Open
$userSender = api_get_user_entity($user_sender_id);
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$subject = sprintf(get_lang('There is a new message in group %s'), $group_info['title']);
- Exclude checks
Variable "sender_info" is not in valid camel caps format Open
'user_info' => $sender_info,
- Exclude checks
Variable "new_file_name" is not in valid camel caps format Open
if (!filter_extension($new_file_name)) {
- Exclude checks
Method name "MessageManager::get_messages_by_group" is not in camel caps format Open
public static function get_messages_by_group($group_id)
- Exclude checks
Variable "new_topics" is not in valid camel caps format Open
$new_topics[$id] = $value;
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$parent = $repo->find($parent_id);
- Exclude checks
Variable "sender_info" is not in valid camel caps format Open
$sender_info = api_get_user_info($user_sender_id);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_info = $usergroup->get($group_id);
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
$user_list = $usergroup->get_users_by_group(
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id,
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
foreach ($user_list as $user_data) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info,
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
group_id = $group_id AND
- Exclude checks
Variable "condition_group_id" is not in valid camel caps format Open
$condition_group_id = '';
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
global $my_group_role;
- Exclude checks
Variable "new_topics" is not in valid camel caps format Open
$new_topics = [];
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$topic_id = 0,
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group = Container::getUsergroupRepository()->find($group_id);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (empty($group_id)) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info['topic_id'] = $topic_id;
- Exclude checks
Missing parameter name Open
* @param int parent id
- Exclude checks
Method name "MessageManager::display_messages_for_group" is not in camel caps format Open
public static function display_messages_for_group($groupId)
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$sender_id = 0,
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$parent_id = (int) $parent_id;
- Exclude checks
Variable "new_user_list" is not in valid camel caps format Open
$new_user_list[] = $user_data['id'];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "html_messages" is not in valid camel caps format Open
$html_messages = '';
- Exclude checks
Missing function doc comment Open
public static function getMessagesAboutUserToString(User $user, string $url = ''): string
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (!empty($receiverUserId) || !empty($group_id)) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info = [
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Missing parameter name Open
* @param int offset (optional)
- Exclude checks
Missing parameter name Open
* @param int limit (optional)
- Exclude checks
Method name "MessageManager::send_message" is not in camel caps format Open
public static function send_message(
- Exclude checks
Variable "user_sender_id" is not in valid camel caps format Open
$sender_info = api_get_user_info($user_sender_id);
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (empty($group_id)) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
group_id= $group_id AND
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$user_sender_id = empty($sender_id) ? api_get_user_id() : (int) $sender_id;
- Exclude checks
Variable "message_id" is not in valid camel caps format Open
public static function get_messages_by_group_by_message($group_id, $message_id)
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$group_info['topic_id'] = $topic_id;
- Exclude checks
Variable "new_user_list" is not in valid camel caps format Open
$new_user_list = [];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
public static function get_messages_by_group_by_message($group_id, $message_id)
- Exclude checks
Variable "condition_limit" is not in valid camel caps format Open
ORDER BY send_date DESC $condition_limit ";
- Exclude checks
Variable "query_vars" is not in valid camel caps format Open
$query_vars = ['id' => $groupId, 'topics_page_nr' => 0];
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$user_sender_id = empty($sender_id) ? api_get_user_id() : (int) $sender_id;
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
if (!empty($parent_id)) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info = $usergroup->get($group_id);
- Exclude checks
Method name "MessageManager::send_message_simple" is not in camel caps format Open
public static function send_message_simple(
- Exclude checks
Variable "sender_info" is not in valid camel caps format Open
$sender_info,
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$sender_id,
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
public static function get_messages_by_group($group_id)
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "new_topics" is not in valid camel caps format Open
foreach ($new_topics as $index => $topic) {
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$parent_id = 0,
- Exclude checks
Variable "parent_id" is not in valid camel caps format Open
$parent_id = (int) $parent_id;
- Exclude checks
Variable "user_sender_id" is not in valid camel caps format Open
$user_sender_id = empty($sender_id) ? api_get_user_id() : (int) $sender_id;
- Exclude checks
Variable "user_sender_id" is not in valid camel caps format Open
if (empty($user_sender_id) || empty($receiverUserId)) {
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
$new_user_list[] = $user_data['id'];
- Exclude checks
Variable "message_id" is not in valid camel caps format Open
if ($message_id == $row['parent_id'] || in_array($row['parent_id'], $parents)) {
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$user_sender_info = api_get_user_info($topic['user_sender_id']);
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$topic_id = (int) $topic_id;
- Exclude checks
Variable "user_data" is not in valid camel caps format Open
foreach ($user_list as $user_data) {
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
'group_info' => $group_info,
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (empty($group_id)) {
- Exclude checks
Variable "condition_limit" is not in valid camel caps format Open
$condition_limit = " LIMIT $offset,$limit ";
- Exclude checks
Variable "condition_group_id" is not in valid camel caps format Open
$condition_group_id
- Exclude checks
Variable "topics_per_page" is not in valid camel caps format Open
$topics_per_page = 10;
- Exclude checks
Variable "array_html" is not in valid camel caps format Open
$array_html = [];
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = 0,
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$sender_id = 0,
- Exclude checks
Add a comma after each item in a multi-line array Open
$existingRelation = $messageRelUserRepository->findOneBy([
- Exclude checks
Variable "new_user_list" is not in valid camel caps format Open
$new_user_list,
- Exclude checks
Variable "sender_id" is not in valid camel caps format Open
$sender_id,
- Exclude checks
Missing parameter name Open
* @param int group id (optional)
- Exclude checks
Variable "condition_group_id" is not in valid camel caps format Open
$condition_group_id = " AND group_id = '$groupId' ";
- Exclude checks
Variable "reply_label" is not in valid camel caps format Open
$reply_label = (1 == $items) ? get_lang('Reply') : get_lang('Replies');
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$image = $user_sender_info['avatar'];
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$rows = self::get_messages_by_group_by_message($groupId, $topic_id);
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
$items_per_page = 50;
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$title = '<h4>'.Security::remove_XSS($main_message['title'], STUDENT, true).$links.'</h4>';
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
.(!empty($files_attachments) ? implode('<br />', $files_attachments) : '')
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
'topic_id' => $topic_id,
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '<div class="row">';
- Exclude checks
Variable "array_html_items" is not in valid camel caps format Open
if (!empty($array_html_items)) {
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
$mail_queue[$i]['time'] = $timeMatches[1].$timeMatches[2];
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
).' '.Display::dateToStringAgoAndLongDate($topic['send_date']);
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$html .= $user_info;
- Exclude checks
Variable "topics_per_page" is not in valid camel caps format Open
'per_page' => $topics_per_page,
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$name = $user_sender_info['complete_name'];
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$main_message['user_sender_id'] == $current_user_id
- Exclude checks
Variable "items_page_nr" is not in valid camel caps format Open
'items_page_nr' => $items_page_nr,
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
.(!empty($files_attachments) ? implode('<br />', $files_attachments) : '')
- Exclude checks
Variable "base_padding" is not in valid camel caps format Open
$base_padding = 20;
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$array_html_items[] = [$html_items];
- Exclude checks
Variable "sorted_rows" is not in valid camel caps format Open
self::message_recursive_sort($rows, $sorted_rows, $first_seed);
- Exclude checks
Variable "admin_info" is not in valid camel caps format Open
$admin_info['user_id'],
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info .= '<div class="name"><a href="'.api_get_path(
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$current_user_id = api_get_user_id();
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$links .= self::getLikesButton($main_message['id'], $current_user_id, $groupId);
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
'user_friend' => $current_user_id,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'anchor_topic' => 'topic_'.$main_message['id'],
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$webCodePath.'social/profile.php?u='.$main_message['user_sender_id']
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
'anchor_topic' => 'topic_'.$topic_id,
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '</div>';
- Exclude checks
Variable "sorted_rows" is not in valid camel caps format Open
$sorted_rows = [0 => []];
- Exclude checks
Variable "sorted_rows" is not in valid camel caps format Open
unset($sorted_rows[0]);
- Exclude checks
Variable "admin_info" is not in valid camel caps format Open
$admin_info['user_id'],
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
if (GROUP_USER_PERMISSION_ADMIN == $my_group_role ||
- Exclude checks
Variable "html_messages" is not in valid camel caps format Open
$html_messages .= Display::return_sortable_grid(
- Exclude checks
Variable "items_page_nr" is not in valid camel caps format Open
$items_page_nr = null;
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="row">';
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
.(!empty($files_attachments) ? implode('<br />', $files_attachments) : '')
- Exclude checks
Variable "items_page_nr" is not in valid camel caps format Open
$items_page_nr = isset($_GET['items_'.$topic['id'].'_page_nr'])
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
.(!empty($files_attachments) ? implode('<br />', $files_attachments) : '')
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
$options = ['hide_navigation' => false, 'per_page' => $items_per_page];
- Exclude checks
Method name "MessageManager::calculate_children" is not in camel caps format Open
public static function calculate_children($rows, $first_seed)
- Exclude checks
Variable "first_seed" is not in valid camel caps format Open
public static function calculate_children($rows, $first_seed)
- Exclude checks
Variable "rows_with_children" is not in valid camel caps format Open
$rows_with_children[$row["id"]] = $row;
- Exclude checks
Method name "MessageManager::generate_message_form" is not in camel caps format Open
public static function generate_message_form()
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
['class' => 'btn btn--plain']
- Exclude checks
Method name "MessageManager::display_message_for_group" is not in camel caps format Open
public static function display_message_for_group($groupId, $topic_id)
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$main_message['user_sender_id'] == $current_user_id
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="avatar-author">';
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
$main_content .= '<div class="username">'.$user_link.'</div>';
- Exclude checks
Variable "array_html_items" is not in valid camel caps format Open
$array_html_items = [];
- Exclude checks
Variable "topic_page_nr" is not in valid camel caps format Open
'topics_page_nr' => $topic_page_nr,
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
.'<div class="username">'.$user_link.'</div>'
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items = Display::div($html_items, ['class' => '', 'style' => 'margin-left:'.$indent.'px']);
- Exclude checks
Variable "first_seed" is not in valid camel caps format Open
self::message_recursive_sort($rows, $sorted_rows, $first_seed);
- Exclude checks
Variable "admin_info" is not in valid camel caps format Open
foreach ($admins as $admin_info) {
- Exclude checks
Variable "reply_label" is not in valid camel caps format Open
$label = '<i class="fa fa-envelope"></i> '.$items.' '.$reply_label;
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
get_lang('Delete'),
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
api_get_path(
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content = '';
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
$files_attachments = self::getAttachmentLinkList($topic['id'], 0);
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
($my_group_role == GROUP_USER_PERMISSION_ADMIN ||
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$topic['user_sender_id'] == $current_user_id
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
$fullMail = $base.$mail_queue[$i]['code'];
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
'LastUpdate'
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = '<div class="author"><img class="img-responsive img-circle" src="'.$image.'" alt="'.$name.'" width="64" height="64" title="'.$name.'" /></div>';
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$rows = self::calculate_children($rows, $topic_id);
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'message_id' => $main_message['id'],
- Exclude checks
Variable "items_page_nr" is not in valid camel caps format Open
'items_page_nr' => $items_page_nr,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
.Display::dateToStringAgoAndLongDate($main_message['send_date'])
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="message-content"> ';
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '</div>';
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '<div class="avatar-author">';
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items = Display::div($html_items, ['class' => 'message-post', 'id' => 'msg_'.$topic['id']]);
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items = Display::div($html_items, ['class' => 'message-post', 'id' => 'msg_'.$topic['id']]);
- Exclude checks
Variable "style_class" is not in valid camel caps format Open
$style_class = [
- Exclude checks
Missing parameter name Open
* @param array list recursive of messages
- Exclude checks
Variable "query_vars" is not in valid camel caps format Open
$query_vars,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'anchor_topic' => 'topic_'.$main_message['id'],
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'message_id' => $main_message['id'],
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
'group_topics.php?action=delete&id='.$groupId.'&topic_id='.$topic_id,
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="col-md-10">';
- Exclude checks
Variable "query_vars" is not in valid camel caps format Open
$query_vars,
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
$mail_queue[$i]['code'] = $codeMatches[2];
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
return array_reverse($mail_queue);
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$name = $user_sender_info['complete_name'];
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
if (empty($main_message)) {
- Exclude checks
Variable "query_vars" is not in valid camel caps format Open
$query_vars = ['id' => $groupId, 'topic_id' => $topic_id, 'topics_page_nr' => 0];
- Exclude checks
Variable "topic_page_nr" is not in valid camel caps format Open
'topics_page_nr' => $topic_page_nr,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
if ($main_message['send_date'] != $main_message['update_date']) {
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$user_sender_info = api_get_user_info($topic['user_sender_id']);
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
'user_friend' => $current_user_id,
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
'user_friend' => $current_user_id,
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
'anchor_topic' => 'topic_'.$topic_id,
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '</div>';
- Exclude checks
Variable "array_html_items" is not in valid camel caps format Open
$array_html_items[] = [$html_items];
- Exclude checks
Variable "url_edit" is not in valid camel caps format Open
$url_edit = Display::url(
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'topic_id' => $main_message['id'],
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
if (!empty($main_message['update_date'])) {
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
$user_link = Display::url(
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="message">'.$main_message['content'].$attachment.'</div></div>';
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
$links .= self::getLikesButton($topic['id'], $current_user_id, $groupId);
- Exclude checks
Variable "base_padding" is not in valid camel caps format Open
$indent = (int) $topic['indent_cnt'] * $base_padding + $base_padding;
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
WEB_PATH
- Exclude checks
Variable "style_class" is not in valid camel caps format Open
$style_class
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$query_vars = ['id' => $groupId, 'topic_id' => $topic_id, 'topics_page_nr' => 0];
- Exclude checks
Variable "topic_page_nr" is not in valid camel caps format Open
$topic_page_nr = isset($_GET['topics_page_nr']) ? (int) $_GET['topics_page_nr'] : null;
- Exclude checks
Missing parameter name Open
* @param int indent for nested view
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
'topic_id' => $main_message['id'],
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
if ($main_message['send_date'] != $main_message['update_date']) {
- Exclude checks
Variable "sorted_rows" is not in valid camel caps format Open
return $sorted_rows;
- Exclude checks
Method name "MessageManager::generate_invitation_form" is not in camel caps format Open
public static function generate_invitation_form()
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
);
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
).' '.Display::dateToStringAgoAndLongDate($topic['update_date']);
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
).'main/social/profile.php?u='.$topic['user_sender_id'].'">'.$name.' </a></div>';
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$user_sender_info = api_get_user_info($main_message['user_sender_id']);
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$user_sender_info = api_get_user_info($main_message['user_sender_id']);
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$files_attachments = self::getAttachmentLinkList($main_message['id'], 0);
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
if (($my_group_role == GROUP_USER_PERMISSION_ADMIN || $my_group_role == GROUP_USER_PERMISSION_MODERATOR) ||
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$userPicture = $user_sender_info['avatar'];
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '</div>';
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$topic_id = $main_message['id'];
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
'Created'
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '<div class="col-md-10">'
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items = Display::div($html_items, ['class' => '', 'style' => 'margin-left:'.$indent.'px']);
- Exclude checks
Missing parameter name Open
* @param int seed for calculate the indent
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
global $my_group_role;
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
$mail_queue[$i]['mail'] = $emailMatches[2];
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="col-md-2">';
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
.Display::dateToStringAgoAndLongDate($main_message['update_date'])
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '</div>';
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items = '';
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$name = $user_sender_info['complete_name'];
- Exclude checks
Variable "base_padding" is not in valid camel caps format Open
$indent = $base_padding;
- Exclude checks
Variable "array_html_items" is not in valid camel caps format Open
$array_html_items,
- Exclude checks
Variable "rows_with_children" is not in valid camel caps format Open
$rows_with_children = [];
- Exclude checks
Variable "url_edit" is not in valid camel caps format Open
$url_edit
- Exclude checks
Variable "mail_queue" is not in valid camel caps format Open
$mail_queue[$i]['reason'] = $detailsMatches[3];
- Exclude checks
Missing parameter name Open
* @param $topic_id
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$main_message = self::get_message_by_id($topic_id);
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
$main_message = self::get_message_by_id($topic_id);
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= $date;
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$main_content .= '<div class="message">'.$main_message['content'].$attachment.'</div></div>';
- Exclude checks
Variable "items_page_nr" is not in valid camel caps format Open
'items_page_nr' => $items_page_nr,
- Exclude checks
Variable "topic_page_nr" is not in valid camel caps format Open
'topics_page_nr' => $topic_page_nr,
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
'topic_id' => $topic_id,
- Exclude checks
Missing parameter name Open
* @param array original rows of messages
- Exclude checks
Variable "admin_info" is not in valid camel caps format Open
foreach ($admins as $admin_info) {
- Exclude checks
Variable "array_html" is not in valid camel caps format Open
$array_html[] = [$html];
- Exclude checks
Variable "array_html" is not in valid camel caps format Open
$array_html,
- Exclude checks
Method name "MessageManager::get_message_by_id" is not in camel caps format Open
public static function get_message_by_id($messageId)
- Exclude checks
Missing parameter name Open
* @param $groupId
- Exclude checks
Variable "topic_id" is not in valid camel caps format Open
public static function display_message_for_group($groupId, $topic_id)
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
if (($my_group_role == GROUP_USER_PERMISSION_ADMIN || $my_group_role == GROUP_USER_PERMISSION_MODERATOR) ||
- Exclude checks
Variable "current_user_id" is not in valid camel caps format Open
'user_friend' => $current_user_id,
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= Display::img(
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '</div>';
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$main_content .= '<div class="username">'.$user_link.'</div>';
- Exclude checks
Variable "main_content" is not in valid camel caps format Open
$title.$main_content,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$topic_id = $main_message['id'];
- Exclude checks
Variable "user_link" is not in valid camel caps format Open
$user_link = Display::url(
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= '<div class="col-md-2">';
- Exclude checks
Variable "html_items" is not in valid camel caps format Open
$html_items .= Display::img(
- Exclude checks
Variable "base_padding" is not in valid camel caps format Open
$indent = (int) $topic['indent_cnt'] * $base_padding + $base_padding;
- Exclude checks
Variable "rows_with_children" is not in valid camel caps format Open
$rows = $rows_with_children;
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
GROUP_USER_PERMISSION_MODERATOR == $my_group_role
- Exclude checks
Variable "html_messages" is not in valid camel caps format Open
return $html_messages;
- Exclude checks
Variable "files_attachments" is not in valid camel caps format Open
$files_attachments = self::getAttachmentLinkList($main_message['id'], 0);
- Exclude checks
Variable "topic_page_nr" is not in valid camel caps format Open
'topics_page_nr' => $topic_page_nr,
- Exclude checks
Variable "main_message" is not in valid camel caps format Open
$links .= self::getLikesButton($main_message['id'], $current_user_id, $groupId);
- Exclude checks
Variable "my_group_role" is not in valid camel caps format Open
$my_group_role == GROUP_USER_PERMISSION_MODERATOR
- Exclude checks
Variable "user_sender_info" is not in valid camel caps format Open
$userPicture = $user_sender_info['avatar'];
- Exclude checks
Variable "rows_with_children" is not in valid camel caps format Open
$rows_with_children[$row["parent_id"]]["children"][] = $row["id"];
- Exclude checks
Method name "MessageManager::message_recursive_sort" is not in camel caps format Open
public static function message_recursive_sort(
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
['class' => 'btn btn--plain']
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
'Created'
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
);
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
).' '.Display::dateToStringAgoAndLongDate($topic['send_date']);
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
api_get_path(
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 24 Open
WEB_PATH
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
get_lang('Delete'),
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
'LastUpdate'
- Exclude checks
Expected 0 spaces after opening bracket; newline found Open
if (
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 28 Open
).' '.Display::dateToStringAgoAndLongDate($topic['update_date']);
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
).'main/social/profile.php?u='.$topic['user_sender_id'].'">'.$name.' </a></div>';
- Exclude checks
The variable $user_list is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $condition_group_id is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $topic_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_id is not named in camelCase. Open
public static function send_message_simple(
$receiverUserId,
$subject,
$message,
$sender_id = 0,
- 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 $new_topics is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $my_group_role is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $my_group_role is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $message_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $topics_per_page is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $html_messages is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $my_group_role is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $first_seed is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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 $topic_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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_sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $group_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $topics_per_page is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $my_group_role is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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 $parent_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $new_user_list is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $new_user_list is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $new_topics is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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_sender_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $query_vars is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $array_html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $base_padding is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $admin_info is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUser(User $user)
{
$tplMailBody = new Template(
null,
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 $admin_info is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUserApproval(User $user)
{
$tplMailBody = new Template(
null,
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 $sender_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $query_vars is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $my_group_role is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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 $new_user_list is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $my_group_role is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $new_topics is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $my_group_role is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $rows_with_children is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $new_file_name is not named in camelCase. Open
public static function saveMessageAttachmentFile($file, $comment, Message $message)
{
// Try to add an extension to the file if it hasn't one
$type = $file['type'] ?? '';
if (empty($type)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $group_id is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $group_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $user_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $base_padding is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $new_file_name is not named in camelCase. Open
public static function saveMessageAttachmentFile($file, $comment, Message $message)
{
// Try to add an extension to the file if it hasn't one
$type = $file['type'] ?? '';
if (empty($type)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $array_html is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $rows_with_children is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $url_edit is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUserApproval(User $user)
{
$tplMailBody = new Template(
null,
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 $parent_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $html_messages is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $base_padding is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $base_padding is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_per_page is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_id is not named in camelCase. Open
public static function send_message_simple(
$receiverUserId,
$subject,
$message,
$sender_id = 0,
- 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 $condition_group_id is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $condition_limit is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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 $reply_label is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $array_html is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_link is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $admin_info is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUserApproval(User $user)
{
$tplMailBody = new Template(
null,
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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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_sender_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $condition_limit is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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 $reply_label is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $array_html is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $my_group_role is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_link is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $array_html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $query_vars is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $sorted_rows is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $mail_queue is not named in camelCase. Open
public static function failedSentMailErrors()
{
$base = api_get_path(SYS_ARCHIVE_PATH).'mail/';
$mailq = $base.'mailq';
- 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 $topic_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $condition_group_id is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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_sender_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_per_page is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $array_html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $style_class is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $parent_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $sender_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $condition_limit is not named in camelCase. Open
public static function getMessagesByParent($parentId, $groupId = 0, $offset = 0, $limit = 0)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$parentId = (int) $parentId;
- 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 $query_vars is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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_sender_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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_info is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_content is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $rows_with_children is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $sorted_rows is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $sorted_rows is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $sorted_rows is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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 $group_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $parent_id is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_info is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 $group_id is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 $html_messages is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $main_message is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $topic_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_link is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $files_attachments is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $style_class is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $url_edit is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUserApproval(User $user)
{
$tplMailBody = new Template(
null,
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 $user_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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_sender_info is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $rows_with_children is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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_link is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $items_page_nr is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $current_user_id is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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 $array_html_items is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $admin_info is not named in camelCase. Open
public static function sendNotificationOfNewRegisteredUser(User $user)
{
$tplMailBody = new Template(
null,
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_messages_by_group is not named in camelCase. Open
public static function get_messages_by_group($group_id)
{
$group_id = (int) $group_id;
if (empty($group_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 send_message_simple is not named in camelCase. Open
public static function send_message_simple(
$receiverUserId,
$subject,
$message,
$sender_id = 0,
- 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 display_messages_for_group is not named in camelCase. Open
public static function display_messages_for_group($groupId)
{
global $my_group_role;
$rows = self::get_messages_by_group($groupId);
- 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 message_recursive_sort is not named in camelCase. Open
public static function message_recursive_sort(
$rows,
&$messages,
$seed = 0,
$indent = 0
- 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 generate_invitation_form is not named in camelCase. Open
public static function generate_invitation_form()
{
$form = new FormValidator('send_invitation');
$form->addTextarea(
'content',
- 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 generate_message_form is not named in camelCase. Open
public static function generate_message_form()
{
$form = new FormValidator('send_message');
$form->addText(
'subject',
- 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 send_message is not named in camelCase. Open
public static function send_message(
$receiverUserId,
$subject,
$content,
array $attachments = [],
- 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 calculate_children is not named in camelCase. Open
public static function calculate_children($rows, $first_seed)
{
$rows_with_children = [];
foreach ($rows as $row) {
$rows_with_children[$row["id"]] = $row;
- 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_messages_by_group_by_message is not named in camelCase. Open
public static function get_messages_by_group_by_message($group_id, $message_id)
{
$group_id = (int) $group_id;
if (empty($group_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_message_by_id is not named in camelCase. Open
public static function get_message_by_id($messageId)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$messageId = (int) $messageId;
$sql = "SELECT * FROM $table
- 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 display_message_for_group is not named in camelCase. Open
public static function display_message_for_group($groupId, $topic_id)
{
global $my_group_role;
$main_message = self::get_message_by_id($topic_id);
if (empty($main_message)) {
- 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() {
}
}