diff --git a/main/inc/lib/extra_field.lib.php b/main/inc/lib/extra_field.lib.php index 360ea3c844..b112cb3253 100755 --- a/main/inc/lib/extra_field.lib.php +++ b/main/inc/lib/extra_field.lib.php @@ -476,13 +476,13 @@ class ExtraField extends Model /** * Add elements to a form. * - * @param FormValidator $form The form object to which to attach this element - * @param int $itemId The item (course, user, session, etc) this extra_field is linked to - * @param array $exclude Variables of extra field to exclude + * @param FormValidator $form The form object to which to attach this element + * @param int $itemId The item (course, user, session, etc) this extra_field is linked to + * @param array $exclude Variables of extra field to exclude * @param bool $filter Whether to get only the fields with the "filter" flag set to 1 (true) or not (false) - * @param bool $useTagAsSelect Whether to show tag fields as select drop-down or not - * @param array $showOnlyTheseFields Limit the extra fields shown to just the list given here - * @param array $orderFields An array containing the names of the fields shown, in the right order + * @param bool $useTagAsSelect Whether to show tag fields as select drop-down or not + * @param array $showOnlyTheseFields Limit the extra fields shown to just the list given here + * @param array $orderFields An array containing the names of the fields shown, in the right order * @param array $extraData * @param bool $orderDependingDefaults * @param bool $adminPermissions diff --git a/main/inc/lib/message.lib.php b/main/inc/lib/message.lib.php index 55b0b11698..757676b329 100755 --- a/main/inc/lib/message.lib.php +++ b/main/inc/lib/message.lib.php @@ -998,8 +998,8 @@ class MessageManager } /** - * @param int $user_id - * @param int $message_id + * @param int $user_id + * @param int $message_id * @param int $type * * @return bool diff --git a/main/inc/lib/social.lib.php b/main/inc/lib/social.lib.php index dabe9acaae..c0180d8a03 100755 --- a/main/inc/lib/social.lib.php +++ b/main/inc/lib/social.lib.php @@ -1872,9 +1872,9 @@ class SocialManager extends UserManager $date = Display::dateToStringAgoAndLongDate($message['send_date']); $currentUserId = api_get_user_id(); $userIdLoop = $message['user_sender_id']; - $receiverId = $message['user_receiver_id']; + $receiverId = $message['user_receiver_id']; $urlImg = api_get_path(WEB_IMG_PATH); - + if (!isset($users[$userIdLoop])) { $users[$userIdLoop] = api_get_user_info($userIdLoop); } diff --git a/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php b/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php index 550a94a0a9..c949d63592 100644 --- a/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php +++ b/src/Chamilo/CourseBundle/Component/CourseCopy/CourseRecycler.php @@ -328,7 +328,7 @@ class CourseRecycler i.visibility = 1"; $sql = "DELETE FROM $forumCategoryTable WHERE c_id = $courseId AND cat_id NOT IN ($subQuery)"; - Database::query($sql); + Database::query($sql); } /** diff --git a/src/Chamilo/UserBundle/Repository/UserRepository.php b/src/Chamilo/UserBundle/Repository/UserRepository.php index 2390e64876..9ea00af548 100644 --- a/src/Chamilo/UserBundle/Repository/UserRepository.php +++ b/src/Chamilo/UserBundle/Repository/UserRepository.php @@ -680,7 +680,7 @@ class UserRepository extends EntityRepository ; $result = $qb->getQuery()->getResult(); } else { - $criteria = [ + $criteria = [ $field => $userId, ]; $result = $em->getRepository($entity)->findBy($criteria);