@@ -94,12 +94,12 @@ |
||
| 94 | 94 | */ |
| 95 | 95 | protected $assignedLastUser; |
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * @var Status |
|
| 99 | - * |
|
| 100 | - * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Status") |
|
| 101 | - * @ORM\JoinColumn(name="status_id", referencedColumnName="id") |
|
| 102 | - **/ |
|
| 97 | + /** |
|
| 98 | + * @var Status |
|
| 99 | + * |
|
| 100 | + * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Status") |
|
| 101 | + * @ORM\JoinColumn(name="status_id", referencedColumnName="id") |
|
| 102 | + **/ |
|
| 103 | 103 | protected $status; |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | protected $filename; |
| 58 | 58 | |
| 59 | - /** |
|
| 59 | + /** |
|
| 60 | 60 | * @var integer |
| 61 | 61 | * |
| 62 | 62 | * @ORM\Column(name="size", type="integer", nullable=false, unique=false) |
@@ -53,12 +53,12 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | protected $ipAddress; |
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @var Ticket |
|
| 58 | - * |
|
| 59 | - * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Ticket") |
|
| 60 | - * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id") |
|
| 61 | - **/ |
|
| 56 | + /** |
|
| 57 | + * @var Ticket |
|
| 58 | + * |
|
| 59 | + * @ORM\ManyToOne(targetEntity="Chamilo\TicketBundle\Entity\Ticket") |
|
| 60 | + * @ORM\JoinColumn(name="ticket_id", referencedColumnName="id") |
|
| 61 | + **/ |
|
| 62 | 62 | protected $ticket; |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * @param $courseInfo |
| 76 | - * @param $weeksCount |
|
| 76 | + * @param string $weeksCount |
|
| 77 | 77 | * @param $page |
| 78 | 78 | * @return array |
| 79 | 79 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * @param $datos |
| 185 | - * @param $pagina |
|
| 185 | + * @param integer $pagina |
|
| 186 | 186 | * @return string |
| 187 | 187 | */ |
| 188 | 188 | function showStudentResult($datos, $pagina) |
@@ -201,8 +201,8 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | /** |
| 203 | 203 | * @param $data |
| 204 | - * @param $numero_semanas |
|
| 205 | - * @return array |
|
| 204 | + * @param integer $numero_semanas |
|
| 205 | + * @return string[] |
|
| 206 | 206 | */ |
| 207 | 207 | function showStudentResultExport($data, $numero_semanas) |
| 208 | 208 | { |
@@ -59,11 +59,11 @@ |
||
| 59 | 59 | } else { |
| 60 | 60 | $page = (!isset($_GET['page'])) ? 1 : $_GET['page']; |
| 61 | 61 | |
| 62 | - Database::query("UPDATE $table_students_report sr SET sr.work_ok = 1 |
|
| 62 | + Database::query("update $table_students_report sr SET sr.work_ok = 1 |
|
| 63 | 63 | WHERE CONCAT (sr.user_id,',',sr.week_report_id) |
| 64 | 64 | IN (SELECT DISTINCT CONCAT(w.user_id,',',rs.id) |
| 65 | 65 | FROM $table_work w JOIN $table_reporte_semanas rs ON w.parent_id = rs.work_id)"); |
| 66 | - Database::query("UPDATE $table_students_report sr SET sr.thread_ok = 1 |
|
| 66 | + Database::query("update $table_students_report sr SET sr.thread_ok = 1 |
|
| 67 | 67 | WHERE CONCAT (sr.user_id,',',sr.week_report_id) |
| 68 | 68 | IN (SELECT DISTINCT CONCAT(f.poster_id,',',rs.id) |
| 69 | 69 | FROM $table_post f JOIN $table_reporte_semanas rs ON f.thread_id = rs.forum_id)"); |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | $courseSelect = Display::select('course_id', $arrCourseList, 0, array(), false); |
| 39 | 39 | $courseControl = Display::div($courseSelect, array('class' => 'controls')); |
| 40 | 40 | |
| 41 | -$userDiv = Display::div($userLabel . " " . $userControl, array('class' => 'control-group')); |
|
| 42 | -$courseDiv = Display::div($courseLabel . " " . $courseControl, array('class' => 'control-group')); |
|
| 41 | +$userDiv = Display::div($userLabel." ".$userControl, array('class' => 'control-group')); |
|
| 42 | +$courseDiv = Display::div($courseLabel." ".$courseControl, array('class' => 'control-group')); |
|
| 43 | 43 | echo $userDiv; |
| 44 | 44 | echo $courseDiv; |
| 45 | 45 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Instance the plugin |
| 38 | 38 | * @staticvar null $result |
| 39 | - * @return Tour |
|
| 39 | + * @return AzureActiveDirectory |
|
| 40 | 40 | */ |
| 41 | 41 | static function create() |
| 42 | 42 | { |
@@ -42,10 +42,10 @@ |
||
| 42 | 42 | // this 2 "mask" function are here just because the SortableTable |
| 43 | 43 | function get_legal_data_mask($id, $params = null, $row = null) |
| 44 | 44 | { |
| 45 | - return LegalManager::get_legal_data($id, $params, $row); |
|
| 45 | + return LegalManager::get_legal_data($id, $params, $row); |
|
| 46 | 46 | } |
| 47 | 47 | function count_mask() |
| 48 | 48 | { |
| 49 | - return LegalManager::count(); |
|
| 49 | + return LegalManager::count(); |
|
| 50 | 50 | } |
| 51 | 51 | Display :: display_footer(); |
@@ -619,8 +619,8 @@ discard block |
||
| 619 | 619 | } |
| 620 | 620 | |
| 621 | 621 | /** |
| 622 | - * Recycle Thematics |
|
| 623 | - */ |
|
| 622 | + * Recycle Thematics |
|
| 623 | + */ |
|
| 624 | 624 | public function recycle_thematic($session_id = 0) |
| 625 | 625 | { |
| 626 | 626 | if ($this->course->has_resources(RESOURCE_THEMATIC)) { |
@@ -685,8 +685,8 @@ discard block |
||
| 685 | 685 | } |
| 686 | 686 | |
| 687 | 687 | /** |
| 688 | - * Recycle Attendances |
|
| 689 | - */ |
|
| 688 | + * Recycle Attendances |
|
| 689 | + */ |
|
| 690 | 690 | public function recycle_attendance($session_id = 0) |
| 691 | 691 | { |
| 692 | 692 | if ($this->course->has_resources(RESOURCE_ATTENDANCE)) { |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * course |
| 38 | 38 | * @param string $backupType 'full_backup' or 'select_items' |
| 39 | 39 | * |
| 40 | - * @return bool |
|
| 40 | + * @return false|null |
|
| 41 | 41 | * |
| 42 | 42 | * @assert (null) === false |
| 43 | 43 | */ |
@@ -25,8 +25,6 @@ |
||
| 25 | 25 | * Get allowed tags |
| 26 | 26 | * @param int $mode NO_HTML, STUDENT_HTML, TEACHER_HTML, |
| 27 | 27 | * STUDENT_HTML_FULLPAGE or TEACHER_HTML_FULLPAGE |
| 28 | - * @param boolean $fullpage If true, the allowed tags for full-page editing |
|
| 29 | - * are returned. |
|
| 30 | 28 | */ |
| 31 | 29 | static function get_allowed_tags($mode) |
| 32 | 30 | { |
@@ -33,8 +33,7 @@ |
||
| 33 | 33 | // Include the allowed tags. |
| 34 | 34 | //include __DIR__.'/allowed_tags.inc.php'; |
| 35 | 35 | global $allowed_tags_student, $allowed_tags_student_full_page, $allowed_tags_teacher, $allowed_tags_teacher_full_page; |
| 36 | - switch ($mode) |
|
| 37 | - { |
|
| 36 | + switch ($mode) { |
|
| 38 | 37 | case NO_HTML: |
| 39 | 38 | return array(); |
| 40 | 39 | break; |