Browse Source

Minor - format code.

jmontoyaa 7 years ago
parent
commit
57d38b56b2

+ 2 - 2
main/admin/dashboard_add_users_to_user.php

@@ -45,9 +45,9 @@ $isAdmin = UserManager::is_admin($user_id);
 if ($isAdmin) {
     $userStatus = PLATFORM_ADMIN;
     $tool_name = get_lang('AssignUsersToPlatformAdministrator');
-} else if ($user_info['status'] == SESSIONADMIN) {
+} elseif ($user_info['status'] == SESSIONADMIN) {
     $tool_name = get_lang('AssignUsersToSessionsAdministrator');
-} else if ($user_info['status'] == STUDENT_BOSS) {
+} elseif ($user_info['status'] == STUDENT_BOSS) {
     $tool_name = get_lang('AssignUsersToBoss');
 } else {
     $tool_name = get_lang('AssignUsersToHumanResourcesManager');

+ 0 - 1
main/inc/lib/social.lib.php

@@ -759,7 +759,6 @@ class SocialManager extends UserManager
         if (in_array($show, $show_groups) && !empty($group_id)) {
             // Group image
             $userGroup = new UserGroup();
-
             $group_info = $userGroup->get($group_id);
 
             $userGroupImage = $userGroup->get_picture_group(

+ 2 - 2
main/lp/learnpath.class.php

@@ -2760,7 +2760,7 @@ class learnpath
                 // It's a simple string item from which the ID can be found in the refs list,
                 // so we can transform it directly to an ID for export.
                 return $this->items[$this->refs_list[$prereq]]->ref;
-            } else if (isset($this->refs_list['ITEM_'.$prereq])) {
+            } elseif (isset($this->refs_list['ITEM_'.$prereq])) {
                 return $this->items[$this->refs_list['ITEM_'.$prereq]]->ref;
             } else {
                 // The last case, if it's a complex form, then find all the IDs (SCORM strings)
@@ -3631,7 +3631,7 @@ class learnpath
         if (Database::num_rows($res) > 0) {
             $row = Database::fetch_array($res);
             $this->lp_view_id = $row['id'];
-        } else if (!api_is_invitee()) {
+        } elseif (!api_is_invitee()) {
             // There is no database record, create one.
             $sql = "INSERT INTO $lp_view_table (c_id, lp_id,user_id, view_count, session_id) VALUES
             		($course_id, ".$this->get_id().",".$this->get_user_id().", 1, $sessionId)";

+ 1 - 1
src/Chamilo/CoreBundle/Component/Utils/ChamiloApi.php

@@ -117,7 +117,7 @@ class ChamiloApi
                         $courseInfo['extLink']['url'],
                         ['class' => 'extLink']
                     );
-                } else if (!empty($courseInfo['extLink']['url'])) {
+                } elseif (!empty($courseInfo['extLink']['url'])) {
                     $headerLogo .= $courseInfo['extLink']['url'];
                 }
             }

+ 1 - 2
src/Chamilo/CourseBundle/Entity/CTool.php

@@ -96,8 +96,7 @@ class CTool
      *
      * @ORM\Column(name="target", type="string", length=20, nullable=false)
      */
-    private
-        $target;
+    private $target;
 
     /**
      * @var string