Browse Source

Minor - format code

jmontoyaa 6 years ago
parent
commit
52f45128ba
3 changed files with 28 additions and 27 deletions
  1. 2 1
      main/extra/userInfo.php
  2. 6 6
      main/inc/lib/message.lib.php
  3. 20 20
      main/inc/lib/sessionmanager.lib.php

+ 2 - 1
main/extra/userInfo.php

@@ -288,8 +288,9 @@ if ($displayMode == "viewDefEdit") {
             "<tr align=\"center\">",
             "<td align=\"left\"><b>", htmlize(api_get_person_name($mainUserInfo['firstName'], $mainUserInfo['lastName'])), "</b></td>\n",
          "<td align=\"left\"><b>", $mainUserInfo['official_code'], "</td>";
+        //récupérer horaire de l'élève
         $course_id = $_course['real_id'];
-        //récupérer horaire de l'élève ?>
+        ?>
         <SELECT NAME='hor_name'>
             <OPTION VALUE='<?php echo $mainUserInfo['official_code']; ?>'><?php echo get_lang('select_calendar_student'); ?></OPTION>
             <?php

+ 6 - 6
main/inc/lib/message.lib.php

@@ -272,12 +272,12 @@ class MessageManager
      * @param int    $receiver_user_id
      * @param string $subject
      * @param string $content
-     * @param array  $attachments files array($_FILES) (optional)
-     * @param array  $fileCommentList    about attachment files (optional)
-     * @param int    $group_id         (optional)
-     * @param int    $parent_id        (optional)
-     * @param int    $editMessageId    id for updating the message (optional)
-     * @param int    $topic_id         (optional) the default value is the current user_id
+     * @param array  $attachments     files array($_FILES) (optional)
+     * @param array  $fileCommentList about attachment files (optional)
+     * @param int    $group_id        (optional)
+     * @param int    $parent_id       (optional)
+     * @param int    $editMessageId   id for updating the message (optional)
+     * @param int    $topic_id        (optional) the default value is the current user_id
      * @param int    $sender_id
      * @param bool   $directMessage
      * @param int    $forwardId

+ 20 - 20
main/inc/lib/sessionmanager.lib.php

@@ -10,6 +10,7 @@ use Chamilo\CoreBundle\Entity\SessionRelCourseRelUser;
 use Chamilo\CoreBundle\Entity\SessionRelUser;
 use Chamilo\UserBundle\Entity\User;
 use ExtraField as ExtraFieldModel;
+use Monolog\Logger;
 
 /**
  * Class SessionManager.
@@ -2849,7 +2850,7 @@ class SessionManager
      * @param string $name
      *
      * @return mixed false if the session does not exist, array if the session exist
-     **/
+     */
     public static function get_session_by_name($name)
     {
         $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
@@ -4736,27 +4737,26 @@ SQL;
     }
 
     /**
-     * @param string         $file
-     * @param bool           $updateSession                           options:
-     *                                                                true: if the session exists it will be updated.
+     * @param string $file
+     * @param bool   $updateSession                                   true: if the session exists it will be updated.
      *                                                                false: if session exists a new session will be created adding a counter session1, session2, etc
-     * @param int            $defaultUserId
-     * @param Monolog\Logger $logger
-     * @param array          $extraFields                             convert a file row to an extra field. Example in CSV file there's a SessionID
+     * @param int    $defaultUserId
+     * @param Logger $logger
+     * @param array  $extraFields                                     convert a file row to an extra field. Example in CSV file there's a SessionID
      *                                                                then it will converted to extra_external_session_id if you set: array('SessionId' => 'extra_external_session_id')
-     * @param string         $extraFieldId
-     * @param int            $daysCoachAccessBeforeBeginning
-     * @param int            $daysCoachAccessAfterBeginning
-     * @param int            $sessionVisibility
-     * @param array          $fieldsToAvoidUpdate
-     * @param bool           $deleteUsersNotInList
-     * @param bool           $updateCourseCoaches
-     * @param bool           $sessionWithCoursesModifier
-     * @param bool           $addOriginalCourseTeachersAsCourseSessionCoaches
-     * @param bool           $removeAllTeachersFromCourse
-     * @param int            $showDescription
-     * @param array          $teacherBackupList
-     * @param array          $groupBackup
+     * @param string $extraFieldId
+     * @param int    $daysCoachAccessBeforeBeginning
+     * @param int    $daysCoachAccessAfterBeginning
+     * @param int    $sessionVisibility
+     * @param array  $fieldsToAvoidUpdate
+     * @param bool   $deleteUsersNotInList
+     * @param bool   $updateCourseCoaches
+     * @param bool   $sessionWithCoursesModifier
+     * @param bool   $addOriginalCourseTeachersAsCourseSessionCoaches
+     * @param bool   $removeAllTeachersFromCourse
+     * @param int    $showDescription
+     * @param array  $teacherBackupList
+     * @param array  $groupBackup
      *
      * @return array
      */