The method SocialManager::setSocialUserBlock() calls the typical debug function print_r() which is mostly only used during development. Open
error_log('$userInfo ->'.print_r($userInfo['language'], true));
- Read upRead up
- Exclude checks
DevelopmentCodeFragment
Since: 2.3.0
Functions like vardump(), printr() etc. are normally only used during development and therefore such calls in production code are a good indicator that they were just forgotten.
Example
class SuspectCode {
public function doSomething(array $items)
{
foreach ($items as $i => $item) {
// …
if ('qafoo' == $item) var_dump($i);
// …
}
}
}
Source https://phpmd.org/rules/design.html#developmentcodefragment
The method display_user_list() has an NPath complexity of 657. The configured NPath complexity threshold is 200. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- 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 setSocialUserBlock() has an NPath complexity of 559872. The configured NPath complexity threshold is 200. Open
public static function setSocialUserBlock(
Template $template,
$userId,
$groupBlock = '',
$groupId = 0,
- 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 getExtraFieldBlock() has an NPath complexity of 17290. The configured NPath complexity threshold is 200. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- 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 getWallMessages() has an NPath complexity of 25056. The configured NPath complexity threshold is 200. Open
public static function getWallMessages(
$userId,
$parentId = 0,
$groupId = 0,
$friendId = 0,
- 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 '$notification' which will lead to PHP notices. Open
$threadList = array_filter(array_unique($notification['thread']));
- 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 '$notification' which will lead to PHP notices. Open
if (isset($notification['thread']) && !empty($notification['thread'])) {
- 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 '$notification' which will lead to PHP notices. Open
if (isset($notification['thread']) && !empty($notification['thread'])) {
- 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 SocialManager has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. Open
class SocialManager extends UserManager
{
const DEFAULT_WALL_POSTS = 10;
const DEFAULT_SCROLL_NEW_POST = 5;
- 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 '528', column '25'). Open
$template = new Template(null, false, false, false, false, false);
- 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 '532', column '30'). 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 '854', column '34'). 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 '1421', column '48'). Open
$objEfOption = new ExtraFieldOption('user');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '1339', column '31'). Open
$extraField = new ExtraField('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 '1522', column '52'). Open
$objEfOption = new ExtraFieldOption('user');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '1385', column '48'). Open
$objEfOption = new ExtraFieldOption('user');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '1303', column '22'). Open
$skill = new SkillModel();
- 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 '1306', column '25'). Open
$template = new Template(null, false, false, false, false, false);
- 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 '1505', column '48'). Open
$objEfOption = new ExtraFieldOption('user');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '1222', 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
Missing class import via use statement (line '1788', column '26'). 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 '1880', column '29'). 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 get_relation_between_contacts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return UserRelUser::USER_UNKNOWN;
}
- 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 show_social_avatar_block uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$template->assign('show_group', false);
$template->assign('show_user', true);
$template->assign(
'user_image',
- 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 show_list_type_friends uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return $friend_relation_list;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method get_relation_between_contacts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if ('true' === api_get_setting('social.social_make_teachers_friend_all')) {
$adminsList = UserManager::get_all_administrators();
foreach ($adminsList as $admin) {
if (api_get_user_id() == $admin['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 get_friends uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$list[] = $row;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method get_relation_between_contacts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$sql = 'SELECT rt.id as id
FROM '.$table.' rt
WHERE rt.id = (
SELECT uf.relation_type
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method getWallMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$select = " SELECT
iid as id,
poster_id as user_sender_id,
'' as user_receiver_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 getWallMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$friendId = (int) $friendId;
$friendCondition = " ( user_receiver_id = $friendId ";
}
- 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 getExtraFieldBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$extraFieldItem = [
'variable' => $extraFieldInfo['variable'],
'label' => ucfirst($extraFieldInfo['display_text']),
'value' => implode(',', $data),
- 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 getWallMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$groupId = (int) $groupId;
$groupCondition = " ( group_id = $groupId ";
}
- 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 listMyFriendsBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$friendHtml = Display::return_message(get_lang('No friends in your contact list'), 'warning');
}
- 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_user_list uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$status_icon_chat = Display::getMdiIcon(StateIcon::OFFLINE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Offline'));
}
- 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_user_list uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$url = '?id='.$uid.$course_url;
}
- 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 listMyFriendsBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$link_shared = empty($link_shared) ? '' : '&'.$link_shared;
$friendHtml .= '<a href="profile.php?'.'u='.$friend['friend_user_id'].$link_shared.'" class="list-group-item">';
$friendHtml .= $friend_avatar.' <span class="username">'.$name_user.'</span>';
$friendHtml .= '<span class="status">'.$statusIcon.'</span>';
- 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 getExtraFieldBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
switch ($extraFieldInfo['value_type']) {
case ExtraField::FIELD_TYPE_RADIO:
$objEfOption = new ExtraFieldOption('user');
$optionInfo = $objEfOption->get_field_option_by_field_and_option($extraFieldInfo['id'], $extraFieldInfo['value']);
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method getWallMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$oneQuery .= $sqlOrder.$sqlLimit;
}
- 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 setSocialUserBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$userRelationType = self::get_relation_between_contacts($currentUserId, $userId);
}
- 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_user_list uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$url = null;
}
- 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 getWallMessages uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$row['group_info'] = $groups[$row['group_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 getExtraFieldBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// if there are information to show
if (!empty($extra_information_value)) {
$extra_information_value = '<ul class="list-group">'.$extra_information_value.'</ul>';
$extra_information .= Display::panelCollapse(
- 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 getGroupBlock uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
// Load my groups
$results = $userGroup->get_groups_by_user(
$userId,
[
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid unused parameters such as '$userId'. Open
public static function getThreadList($userId)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused parameters such as '$startDate'. Open
$startDate = '',
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Avoid unused local variables such as '$relation'. Open
$relation = self::get_relation_between_contacts(
- 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 parameters such as '$wrap'. Open
public static function display_user_list($user_list, $wrap = true)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
The parameter $user_id is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- 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 $user_receiver_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $user_receiver_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $user_send_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $user_send_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- 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 $receiver_id is not named in camelCase. Open
public static function getCountMessagesReceived($receiver_id)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$sql = 'SELECT COUNT(*) FROM '.$table.'
WHERE
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $id_group is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- 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 $user_id is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- 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 $load_extra_info is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- 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 $user_list is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- 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 $user_friend is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- 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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $user_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $user_id is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- 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 $show_full_profile is not named in camelCase. Open
public static function setSocialUserBlock(
Template $template,
$userId,
$groupBlock = '',
$groupId = 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 $link_shared is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- 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 $user_id is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- 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 $span_count is not named in camelCase. Open
public static function social_wrapper_div($content, $span_count)
{
$span_count = (int) $span_count;
$html = '<div class="span'.$span_count.'">';
$html .= '<div class="well_border">';
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Missing parameter name Open
* @param int user id
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
if (empty($user_send_id) || empty($user_receiver_id)) {
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
if (isset($search_name)) {
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
user_sender_id = ".((int) $user_send_id)." AND
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
- Exclude checks
Missing parameter name Open
* @param bool true will load firstname, lastname, and image name
- Exclude checks
Variable "load_extra_info" is not in valid camel caps format Open
$load_extra_info = true
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
lastName LIKE "%'.Database::escape_string($search_name).'%" OR
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
if (empty($user_send_id) || empty($user_receiver_id)) {
- Exclude checks
Variable "friend_relation_list" is not in valid camel caps format Open
$friend_relation_list = [];
- Exclude checks
Variable "count_list" is not in valid camel caps format Open
$count_list = count($friend_relation_list);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
'.(api_is_western_name_order() ? 'concat(firstName, lastName)' : 'concat(lastName, firstName)').' LIKE concat("%","'.Database::escape_string($search_name).'","%")
- Exclude checks
Missing parameter name Open
* @param int user receiver id
- Exclude checks
Method name "SocialManager::show_list_type_friends" is not in camel caps format Open
public static function show_list_type_friends()
- Exclude checks
Variable "user_friend" is not in valid camel caps format Open
friend_user_id='.((int) $user_friend).' AND
- Exclude checks
Variable "id_group" is not in valid camel caps format Open
if (isset($id_group) && $id_group > 0) {
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
$search_name = str_replace(' ', '', $search_name);
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
public static function invitation_denied($user_send_id, $user_receiver_id)
- Exclude checks
Variable "friend_relation_list" is not in valid camel caps format Open
$friend_relation_list[] = $row;
- Exclude checks
Variable "tbl_my_user" is not in valid camel caps format Open
SELECT user_id FROM '.$tbl_my_user.'
- Exclude checks
Method name "SocialManager::get_relation_between_contacts" is not in camel caps format Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
- Exclude checks
Variable "tbl_my_user" is not in valid camel caps format Open
$tbl_my_user = Database::get_main_table(TABLE_MAIN_USER);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
$search_name = str_replace(' ', '', $search_name);
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
user_receiver_id=".((int) $user_receiver_id)." AND
- Exclude checks
Method name "SocialManager::invitation_denied" is not in camel caps format Open
public static function invitation_denied($user_send_id, $user_receiver_id)
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
user_sender_id = '.((int) $user_send_id).' AND
- Exclude checks
Variable "friend_relation_list" is not in valid camel caps format Open
$count_list = count($friend_relation_list);
- Exclude checks
Variable "friend_relation_list" is not in valid camel caps format Open
return $friend_relation_list;
- Exclude checks
Variable "user_friend" is not in valid camel caps format Open
friend_user_id='.((int) $user_friend).'
- Exclude checks
Missing parameter name Open
* @param string name to search
- Exclude checks
Variable "id_group" is not in valid camel caps format Open
if (isset($id_group) && $id_group > 0) {
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
$search_name = trim($search_name);
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
$search_name = trim($search_name);
- Exclude checks
Variable "receiver_id" is not in valid camel caps format Open
public static function getCountMessagesReceived($receiver_id)
- Exclude checks
Variable "receiver_id" is not in valid camel caps format Open
user_receiver_id='.intval($receiver_id).' AND
- Exclude checks
Variable "friend_relation_list" is not in valid camel caps format Open
$friend_relation_list[] = get_lang('Unknown');
- Exclude checks
Missing parameter name Open
* @param int group id
- Exclude checks
Method name "SocialManager::get_friends" is not in camel caps format Open
public static function get_friends(
- Exclude checks
Variable "tbl_my_friend" is not in valid camel caps format Open
$tbl_my_friend = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
- Exclude checks
Variable "tbl_my_friend" is not in valid camel caps format Open
$sql = 'SELECT friend_user_id FROM '.$tbl_my_friend.'
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
public static function invitation_denied($user_send_id, $user_receiver_id)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "id_group" is not in valid camel caps format Open
$sql .= ' AND relation_type='.$id_group;
- Exclude checks
Variable "load_extra_info" is not in valid camel caps format Open
if ($load_extra_info) {
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
if (empty($user_send_id) || empty($user_receiver_id)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
friend_user_id<>'.$user_id.' AND
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
firstName LIKE "%'.Database::escape_string($search_name).'%" OR
- Exclude checks
Method name "SocialManager::get_list_invitation_sent_by_user_id" is not in camel caps format Open
public static function get_list_invitation_sent_by_user_id($userId)
- Exclude checks
Method name "SocialManager::invitation_accepted" is not in camel caps format Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
- Exclude checks
Missing parameter name Open
* @param int user sender id
- Exclude checks
Variable "user_send_id" is not in valid camel caps format Open
if (empty($user_send_id) || empty($user_receiver_id)) {
- Exclude checks
Variable "user_receiver_id" is not in valid camel caps format Open
user_receiver_id='.((int) $user_receiver_id).' AND
- Exclude checks
Variable "user_friend" is not in valid camel caps format Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
user_id='.((int) $user_id).' AND
- Exclude checks
Variable "search_name" is not in valid camel caps format Open
$search_name = null,
- Exclude checks
Method name "SocialManager::get_list_invitation_of_friends_by_user_id" is not in camel caps format Open
public static function get_list_invitation_of_friends_by_user_id($userId, $limit = 0)
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
user_id='.((int) $user_id).' AND
- Exclude checks
Variable "id_group" is not in valid camel caps format Open
$id_group = null,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "count_list" is not in valid camel caps format Open
if (0 == $count_list) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
user_id='.$user_id;
- Exclude checks
Method name "SocialManager::show_social_avatar_block" is not in camel caps format Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$template->assign('group_id', $group_id);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id,
- Exclude checks
Variable "status_icon_chat" is not in valid camel caps format Open
<div class="items-user-status">'.$status_icon_chat.' '.$user_rol.'</div>
- Exclude checks
Variable "span_count" is not in valid camel caps format Open
public static function social_wrapper_div($content, $span_count)
- Exclude checks
Variable "social_plugins" is not in valid camel caps format Open
if (is_array($social_plugins) && count($social_plugins) > 0) {
- Exclude checks
Doc comment for parameter $groupBlock does not match actual variable name $userId Open
* @param string $groupBlock Optional. Highlight link possible values:
- Exclude checks
Variable "name_user" is not in valid camel caps format Open
$name_user = api_get_person_name($friend['firstName'], $friend['lastName']);
- Exclude checks
Variable "name_user" is not in valid camel caps format Open
$friendHtml .= '<a onclick="javascript:chatWith(\''.$friend['friend_user_id'].'\', \''.$name_user.'\', \''.$status.'\',\''.$friendAvatarSmall.'\')" href="javascript:void(0);" class="list-group-item">';
- Exclude checks
Variable "extra_user_data" is not in valid camel caps format Open
foreach ($extra_user_data as $key => $data) {
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'.ucfirst($extraFieldInfo['display_text']).': '.$data.'</li>';
- Exclude checks
Variable "id_options" is not in valid camel caps format Open
foreach ($id_options as $id_option) {
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'.ucfirst($extraFieldInfo['display_text']).': '
- Exclude checks
Variable "extra_information" is not in valid camel caps format Open
$extra_information .= Display::panelCollapse(
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block = '';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '</li>';
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info = '<div class="description"><p>'.cut($result['description'], 120, true)."</p></div>";
- Exclude checks
Variable "social_plugins" is not in valid camel caps format Open
if (is_array($social_plugins) && count($social_plugins) > 0) {
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 32 Open
]).'#post_id_'.$post->getIid();
- Exclude checks
Missing parameter name Open
* @param $link_shared
- Exclude checks
Variable "user_info_friend" is not in valid camel caps format Open
$user_info_friend = api_get_user_info($friend['friend_user_id'], true);
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value = '<ul class="list-group">'.$extra_information_value.'</ul>';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block = Display::panelCollapse(
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = api_get_user_id();
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
<p style="min-height: 30px;" title="'.get_lang('Code').'">'.$user_info['official_code'].'</p></div>';
- Exclude checks
Variable "course_url" is not in valid camel caps format Open
$url = api_get_path(WEB_CODE_PATH).'social/profile.php?u='.$uid.$course_url;
- Exclude checks
Variable "social_plugins" is not in valid camel caps format Open
$social_plugins = [1, 2];
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value = '';
- Exclude checks
Variable "id_options" is not in valid camel caps format Open
$id_options = explode('::', $data);
- Exclude checks
Variable "id_option" is not in valid camel caps format Open
WHERE id = '$id_option'";
- Exclude checks
Variable "value_options" is not in valid camel caps format Open
$value_options[] = $row_options[0];
- Exclude checks
Variable "user_tags" is not in valid camel caps format Open
foreach ($user_tags as $tags) {
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'.ucfirst($extraFieldInfo['display_text']).': '
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "show_groups" is not in valid camel caps format Open
$show_groups = [
- Exclude checks
Method name "SocialManager::display_user_list" is not in camel caps format Open
public static function display_user_list($user_list, $wrap = true)
- Exclude checks
Variable "status_icon_chat" is not in valid camel caps format Open
$status_icon_chat = Display::getMdiIcon(StateIcon::OFFLINE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Offline'));
- Exclude checks
Method name "SocialManager::social_wrapper_div" is not in camel caps format Open
public static function social_wrapper_div($content, $span_count)
- Exclude checks
Variable "span_count" is not in valid camel caps format Open
$html = '<div class="span'.$span_count.'">';
- Exclude checks
Doc comment for parameter $groupId does not match actual variable name $groupBlock Open
* @param int $groupId Optional. Group ID
- Exclude checks
Variable "friend_avatar" is not in valid camel caps format Open
$friend_avatar = '<img src="'.$friendAvatarMedium.'" id="imgfriend_'.$friend['friend_user_id'].'" title="'.$name_user.'" class="user-image"/>';
- Exclude checks
Variable "link_shared" is not in valid camel caps format Open
$friendHtml .= '<a href="profile.php?'.'u='.$friend['friend_user_id'].$link_shared.'" class="list-group-item">';
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable
- Exclude checks
Variable "value_options" is not in valid camel caps format Open
'value' => $value_options,
- Exclude checks
Variable "tag_tmp" is not in valid camel caps format Open
$tag_tmp = '';
- Exclude checks
Variable "user_tags" is not in valid camel caps format Open
if (is_array($user_tags) && count($user_tags) > 0) {
- Exclude checks
Variable "user_tags" is not in valid camel caps format Open
if (is_array($user_tags) && count($user_tags) > 0) {
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '</div>';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id,
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$userPicture = $user_info['avatar'];
- Exclude checks
Variable "course_url" is not in valid camel caps format Open
$url = '?id='.$uid.$course_url;
- Exclude checks
Missing parameter name Open
* @param $uri url
- Exclude checks
Variable "name_user" is not in valid camel caps format Open
$friendHtml .= $friend_avatar.' <span class="username">'.$name_user.'</span>';
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$extra_user_data = UserManager::get_extra_user_data($user_id);
- Exclude checks
Variable "row_options" is not in valid camel caps format Open
$row_options = Database::fetch_row($res_options);
- Exclude checks
Variable "extra_information" is not in valid camel caps format Open
return $extra_information;
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
if (empty($user_id)) {
- Exclude checks
Variable "user_rol" is not in valid camel caps format Open
$user_rol = 1 == $user_info['status'] ? Display::getMdiIcon(ObjectIcon::TEACHER, 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Trainer')) : Display::getMdiIcon(ObjectIcon::USER, 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Learner'));
- Exclude checks
Variable "show_full_profile" is not in valid camel caps format Open
if ($show_full_profile) {
- Exclude checks
Variable "value_options" is not in valid camel caps format Open
$value_options = [];
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= ' <li class="list-group-item">';
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$firstname = $user_info['firstname'];
- Exclude checks
Variable "name_user" is not in valid camel caps format Open
$friend_avatar = '<img src="'.$friendAvatarMedium.'" id="imgfriend_'.$friend['friend_user_id'].'" title="'.$name_user.'" class="user-image"/>';
- Exclude checks
Variable "link_shared" is not in valid camel caps format Open
$link_shared = empty($link_shared) ? '' : '&'.$link_shared;
- Exclude checks
Variable "extra_user_data" is not in valid camel caps format Open
if (is_array($extra_user_data) && count($extra_user_data) > 0) {
- Exclude checks
Variable "t_ufo" is not in valid camel caps format Open
FROM $t_ufo
- Exclude checks
Variable "icon_path" is not in valid camel caps format Open
.'<img src="'.$icon_path.'" alt="icon"'
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
if (!empty($social_group_block)) {
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block,
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id,
- Exclude checks
Variable "course_url" is not in valid camel caps format Open
$course_url = '&cidReq='.Security::remove_XSS($_GET['cidReq']);
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
foreach ($user_list as $uid) {
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_info = api_get_user_info($uid, true);
- Exclude checks
Variable "show_full_profile" is not in valid camel caps format Open
$show_full_profile = true
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .=
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value = '<ul class="list-group">'.$extra_information_value.'</ul>';
- Exclude checks
Variable "show_groups" is not in valid camel caps format Open
if (in_array($show, $show_groups) && !empty($group_id)) {
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
if (in_array($show, $show_groups) && !empty($group_id)) {
- Exclude checks
Variable "link_shared" is not in valid camel caps format Open
$link_shared = empty($link_shared) ? '' : '&'.$link_shared;
- Exclude checks
Variable "tag_tmp" is not in valid camel caps format Open
.' '.$tag_tmp.'</li>';
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'.$data.'</li>';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= $group['name'];
- Exclude checks
Variable "group_url" is not in valid camel caps format Open
$group_url
- Exclude checks
Variable "group_actions" is not in valid camel caps format Open
'description' => $group_info.$group_actions,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
if (isset($_GET['id']) || count($user_list) < 1) {
- Exclude checks
Variable "course_url" is not in valid camel caps format Open
$course_url = '';
- Exclude checks
Doc comment for parameter $show_full_profile does not match actual variable name $groupId Open
* @param bool $show_full_profile
- Exclude checks
Variable "name_user" is not in valid camel caps format Open
$friendHtml .= $friend_avatar.' <span class="username">'.$name_user.'</span>';
- Exclude checks
Variable "value_options" is not in valid camel caps format Open
.' '.implode(' ', $value_options).'</li>';
- Exclude checks
Variable "group_actions" is not in valid camel caps format Open
$group_actions = '<div class="group-more"><a class="btn btn--plain" href="groups.php?#tab_browse-2">'.
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_info = $userGroup->get($group_id);
- Exclude checks
Variable "user_rol" is not in valid camel caps format Open
<div class="items-user-status">'.$status_icon_chat.' '.$user_rol.'</div>
- Exclude checks
Doc comment for parameter $userId does not match actual variable name $template Open
* @param int $userId The user id
- Exclude checks
Expected 9 spaces after parameter type; 1 found Open
* @param int $user_id
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
- Exclude checks
Variable "friend_avatar" is not in valid camel caps format Open
$friendHtml .= $friend_avatar.' <span class="username">'.$name_user.'</span>';
- Exclude checks
Variable "link_shared" is not in valid camel caps format Open
$link_shared = empty($link_shared) ? '' : '&'.$link_shared;
- Exclude checks
Variable "t_ufo" is not in valid camel caps format Open
$t_ufo = Database::get_main_table(TABLE_EXTRA_FIELD_OPTIONS);
- Exclude checks
Variable "res_options" is not in valid camel caps format Open
$res_options = Database::query($sql);
- Exclude checks
Variable "user_tags" is not in valid camel caps format Open
$user_tags = UserManager::get_user_tags($user_id, $extraFieldInfo['id']);
- Exclude checks
Variable "tag_tmp" is not in valid camel caps format Open
'value' => $tag_tmp,
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_id = (int) $user_id;
- Exclude checks
Variable "link_shared" is not in valid camel caps format Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
- Exclude checks
Variable "row_options" is not in valid camel caps format Open
$value_options[] = $row_options[0];
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$user_tags = UserManager::get_user_tags($user_id, $extraFieldInfo['id']);
- Exclude checks
Variable "tag_tmp" is not in valid camel caps format Open
$tag_tmp .= '<a class="label label_tag"'
- Exclude checks
Variable "icon_path" is not in valid camel caps format Open
if (false == self::verifyUrl($icon_path)) {
- Exclude checks
Variable "group_url" is not in valid camel caps format Open
$group_url = "group_view.php?id=$id";
- Exclude checks
Variable "group_url" is not in valid camel caps format Open
$group_url
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '<div class="list-group">';
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
$group_id = (int) $group_id;
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info['picture'],
- Exclude checks
Variable "span_count" is not in valid camel caps format Open
$span_count = (int) $span_count;
- Exclude checks
Method name "SocialManager::get_plugins" is not in camel caps format Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
- Exclude checks
Variable "show_full_profile" is not in valid camel caps format Open
$template->assign('show_full_profile', $show_full_profile);
- Exclude checks
Variable "user_info_friend" is not in valid camel caps format Open
if (!empty($user_info_friend['user_is_online_in_chat'])) {
- Exclude checks
Variable "id_option" is not in valid camel caps format Open
foreach ($id_options as $id_option) {
- Exclude checks
Variable "icon_path" is not in valid camel caps format Open
$icon_path = UserManager::get_favicon_from_url($data);
- Exclude checks
Variable "icon_path" is not in valid camel caps format Open
$domain = parse_url($icon_path, PHP_URL_HOST);
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value .= '<li class="list-group-item">'.ucfirst($extraFieldInfo['display_text']).': '.$data.'</li>';
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
$extra_information_value,
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
if (isset($user_info['user_is_online_in_chat']) && 1 == $user_info['user_is_online_in_chat']) {
- Exclude checks
Variable "span_count" is not in valid camel caps format Open
$span_count = (int) $span_count;
- Exclude checks
Variable "social_plugins" is not in valid camel caps format Open
foreach ($social_plugins as $plugin) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
- Exclude checks
Variable "friend_avatar" is not in valid camel caps format Open
$friendHtml .= $friend_avatar.' <span class="username">'.$name_user.'</span>';
- Exclude checks
Variable "extra_information" is not in valid camel caps format Open
$extra_information = '';
- Exclude checks
Variable "extra_user_data" is not in valid camel caps format Open
if (is_array($extra_user_data) && count($extra_user_data) > 0) {
- Exclude checks
Variable "extra_information_value" is not in valid camel caps format Open
if (!empty($extra_information_value)) {
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '<div class="list-group">';
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
'description' => $group_info.$group_actions,
- Exclude checks
Variable "user_list" is not in valid camel caps format Open
public static function display_user_list($user_list, $wrap = true)
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$lastname = $user_info['lastname'];
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
$user_rol = 1 == $user_info['status'] ? Display::getMdiIcon(ObjectIcon::TEACHER, 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Trainer')) : Display::getMdiIcon(ObjectIcon::USER, 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Learner'));
- Exclude checks
Variable "user_info" is not in valid camel caps format Open
if (isset($user_info['user_is_online_in_chat']) && 1 == $user_info['user_is_online_in_chat']) {
- Exclude checks
Variable "status_icon_chat" is not in valid camel caps format Open
$status_icon_chat = Display::getMdiIcon(StateIcon::ONLINE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Online'));
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
public static function getExtraFieldBlock($user_id, $isArray = false)
- Exclude checks
Variable "extra_user_data" is not in valid camel caps format Open
$extra_user_data = UserManager::get_extra_user_data($user_id);
- Exclude checks
Variable "res_options" is not in valid camel caps format Open
$row_options = Database::fetch_row($res_options);
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= Display::url(
- Exclude checks
Variable "group_info" is not in valid camel caps format Open
$group_info = $userGroup->get($group_id);
- Exclude checks
Variable "status_icon_chat" is not in valid camel caps format Open
$status_icon_chat = null;
- Exclude checks
Expected 8 spaces after parameter type; 1 found Open
* @param bool $showLinkToChat
- Exclude checks
Variable "field_variable" is not in valid camel caps format Open
$field_variable = str_replace('extra_', '', $key);
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= $form->returnForm();
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
if (!empty($social_group_block)) {
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
return $social_group_block;
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= ' <li class="list-group-item">';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block,
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= $group['name'];
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '</div>';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block .= '</li>';
- Exclude checks
Variable "social_group_block" is not in valid camel caps format Open
$social_group_block = Display::panelCollapse(
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
return Display::panel($content, '',
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
return Display::panel($content, '',
- Exclude checks
The variable $user_id is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_send_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $course_url is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $count_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $friend_relation_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_my_friend is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $count_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_my_friend is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_receiver_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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 $group_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_info is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_list is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_rol is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_friend is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_group is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_send_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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_receiver_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $show_groups is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $friend_relation_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $load_extra_info is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_send_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $course_url is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $show_groups is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $friend_relation_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_friend is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_receiver_id is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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_info is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_group is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $tbl_my_user is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_receiver_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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 $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 $friend_relation_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_my_user is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $search_name is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $receiver_id is not named in camelCase. Open
public static function getCountMessagesReceived($receiver_id)
{
$table = Database::get_main_table(TABLE_MESSAGE);
$sql = 'SELECT COUNT(*) FROM '.$table.'
WHERE
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $user_send_id is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return 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 $group_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_list is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $friend_relation_list is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_group is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $status_icon_chat is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $link_shared is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $link_shared is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_user is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_tags is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_user is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $link_shared is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $field_variable is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tag_tmp is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $status_icon_chat is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $show_full_profile is not named in camelCase. Open
public static function setSocialUserBlock(
Template $template,
$userId,
$groupBlock = '',
$groupId = 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 $name_user is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $t_ufo is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $value_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tag_tmp is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $icon_path is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_url is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_friend is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_user is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $t_ufo is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $value_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_plugins is not named in camelCase. Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
{
$content = '';
switch ($place) {
case SOCIAL_CENTER_PLUGIN:
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $friend_avatar is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_tags is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $icon_path is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $span_count is not named in camelCase. Open
public static function social_wrapper_div($content, $span_count)
{
$span_count = (int) $span_count;
$html = '<div class="span'.$span_count.'">';
$html .= '<div class="well_border">';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_url is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_actions is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_plugins is not named in camelCase. Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
{
$content = '';
switch ($place) {
case SOCIAL_CENTER_PLUGIN:
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_user_data is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $field_variable is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $name_user is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $friend_avatar is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_option is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_tags is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_actions is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $span_count is not named in camelCase. Open
public static function social_wrapper_div($content, $span_count)
{
$span_count = (int) $span_count;
$html = '<div class="span'.$span_count.'">';
$html .= '<div class="well_border">';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_plugins is not named in camelCase. Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
{
$content = '';
switch ($place) {
case SOCIAL_CENTER_PLUGIN:
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $value_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $row_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_url is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_user_data is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $status_icon_chat is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $status_icon_chat is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_url is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $link_shared is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $res_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $value_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_tags is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $icon_path is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $span_count is not named in camelCase. Open
public static function social_wrapper_div($content, $span_count)
{
$span_count = (int) $span_count;
$html = '<div class="span'.$span_count.'">';
$html .= '<div class="well_border">';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_plugins is not named in camelCase. Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
{
$content = '';
switch ($place) {
case SOCIAL_CENTER_PLUGIN:
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $show_full_profile is not named in camelCase. Open
public static function setSocialUserBlock(
Template $template,
$userId,
$groupBlock = '',
$groupId = 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 $friend_avatar is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_user_data is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_user_data is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $res_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $row_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_url is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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 getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_friend is not named in camelCase. Open
public static function listMyFriendsBlock($user_id, $link_shared = '', $showLinkToChat = false)
{
//SOCIALGOODFRIEND , USER_RELATION_TYPE_FRIEND, USER_RELATION_TYPE_PARENT
$friends = self::get_friends($user_id, UserRelUser::USER_RELATION_TYPE_FRIEND);
$numberFriends = count($friends);
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tag_tmp is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $icon_path is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $extra_information_value is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_rol is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_options is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $id_option is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is 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_id is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tag_tmp is not named in camelCase. Open
public static function getExtraFieldBlock($user_id, $isArray = false)
{
$fieldVisibility = api_get_setting('profile.profile_fields_visibility', true);
$fieldVisibilityKeys = [];
if (isset($fieldVisibility['options'])) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $social_group_block is not named in camelCase. Open
public static function getGroupBlock($userId)
{
$threadList = self::getThreadList($userId);
$userGroup = new UserGroupModel();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It 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_friends is not named in camelCase. Open
public static function get_friends(
$user_id,
$id_group = null,
$search_name = null,
$load_extra_info = true
- 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_list_invitation_sent_by_user_id is not named in camelCase. Open
public static function get_list_invitation_sent_by_user_id($userId)
{
$userId = (int) $userId;
if (empty($userId)) {
- 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 invitation_accepted is not named in camelCase. Open
public static function invitation_accepted($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method show_list_type_friends is not named in camelCase. Open
public static function show_list_type_friends()
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$sql = 'SELECT id, title FROM '.$table.'
WHERE id<>6
- 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_relation_between_contacts is not named in camelCase. Open
public static function get_relation_between_contacts($user_id, $user_friend, $includeRH = false)
{
$table = Database::get_main_table(TABLE_MAIN_USER_FRIEND_RELATION_TYPE);
$userRelUserTable = Database::get_main_table(TABLE_MAIN_USER_REL_USER);
if (false == $includeRH) {
- 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_list_invitation_of_friends_by_user_id is not named in camelCase. Open
public static function get_list_invitation_of_friends_by_user_id($userId, $limit = 0)
{
$userId = (int) $userId;
$limit = (int) $limit;
- 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 show_social_avatar_block is not named in camelCase. Open
public static function show_social_avatar_block($show = '', $group_id = 0, $user_id = 0)
{
$user_id = (int) $user_id;
$group_id = (int) $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 invitation_denied is not named in camelCase. Open
public static function invitation_denied($user_send_id, $user_receiver_id)
{
if (empty($user_send_id) || empty($user_receiver_id)) {
return false;
}
- Read upRead up
- Exclude checks
CamelCaseMethodName
Since: 0.2
It is considered best practice to use the camelCase notation to name methods.
Example
class ClassName {
public function get_name() {
}
}
Source
The method display_user_list is not named in camelCase. Open
public static function display_user_list($user_list, $wrap = true)
{
$html = '';
if (isset($_GET['id']) || count($user_list) < 1) {
- 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_plugins is not named in camelCase. Open
public static function get_plugins($place = SOCIAL_CENTER_PLUGIN)
{
$content = '';
switch ($place) {
case SOCIAL_CENTER_PLUGIN:
- 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 social_wrapper_div is not named in camelCase. Open
public static function social_wrapper_div($content, $span_count)
{
$span_count = (int) $span_count;
$html = '<div class="span'.$span_count.'">';
$html .= '<div class="well_border">';
- 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() {
}
}