Completed
Push — master ( f173a6...4a27fe )
by Angel Fernando Quiroz
37:49 queued 04:39
created
src/Chamilo/CoreBundle/Entity/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1050,7 +1050,7 @@
 block discarded – undo
1050 1050
     {
1051 1051
         // If the session is registered in the course session list.
1052 1052
         $exists = $this->getCourses()->exists(
1053
-            function ($key, $element) use ($course) {
1053
+            function($key, $element) use ($course) {
1054 1054
                 /** @var SessionRelCourse $element */
1055 1055
                 return $course->getId() == $element->getCourse()->getId();
1056 1056
             }
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function createHtmlStyle()
54 54
     {
55 55
         $style = '';
56
-        if (trim($this->value) == '<html><head><title></title></head><body></body></html>' || $this->value == '' ) {
56
+        if (trim($this->value) == '<html><head><title></title></head><body></body></html>' || $this->value == '') {
57 57
             $cssFile = api_get_path(SYS_CSS_PATH).'themes/'.api_get_visual_theme().'/editor.css';
58 58
             if (!is_file($cssFile)) {
59 59
                 $cssFile = api_get_css('css/editor.css');
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
         return [[
172 172
             'title' => get_lang('EmptyTemplate'),
173 173
             'description' => null,
174
-            'image' => api_get_path(WEB_IMG_PATH) . 'home/default_platform_document/template_thumb/empty.gif',
174
+            'image' => api_get_path(WEB_IMG_PATH).'home/default_platform_document/template_thumb/empty.gif',
175 175
             'html' => '
176 176
                 <!DOCYTPE html>
177 177
                 <html>
178 178
                     <head>
179
-                        <meta charset="' . api_get_system_encoding() . '" />
179
+                        <meta charset="' . api_get_system_encoding().'" />
180 180
                     </head>
181
-                    <body  dir="' . api_get_text_direction() . '">
181
+                    <body  dir="' . api_get_text_direction().'">
182 182
                         <p>
183 183
                             <br/>
184 184
                         </p>
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         foreach ($systemTemplates as $template) {
213 213
             $image = $template->getImage();
214 214
             $image = !empty($image) ? $image : 'empty.gif';
215
-            $image = api_get_path(WEB_IMG_PATH) . 'home/default_platform_document/template_thumb/' . $image;
215
+            $image = api_get_path(WEB_IMG_PATH).'home/default_platform_document/template_thumb/'.$image;
216 216
 
217 217
             /*$image = $this->urlGenerator->generate(
218 218
                 'get_document_template_action',
@@ -268,14 +268,14 @@  discard block
 block discarded – undo
268 268
             $templateItem = [];
269 269
             $templateItem['title'] = $template->getTitle();
270 270
             $templateItem['description'] = $template->getDescription();
271
-            $templateItem['image'] = api_get_path(WEB_IMG_PATH). 'home/default_platform_document/template_thumb/noimage.gif';
271
+            $templateItem['image'] = api_get_path(WEB_IMG_PATH).'home/default_platform_document/template_thumb/noimage.gif';
272 272
             $templateItem['html'] = file_get_contents(api_get_path(SYS_COURSE_PATH)
273
-                . $courseDirectory . '/document' . $templateData['path']);
273
+                . $courseDirectory.'/document'.$templateData['path']);
274 274
 
275 275
             $image = $template->getImage();
276 276
             if (!empty($image)) {
277 277
                 $templateItem['image'] = api_get_path(WEB_COURSE_PATH)
278
-                    . $courseDirectory . '/upload/template_thumbnails/' . $template->getImage();
278
+                    . $courseDirectory.'/upload/template_thumbnails/'.$template->getImage();
279 279
             }
280 280
 
281 281
             $templateList[] = $templateItem;
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/SysAnnouncement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     {
114 114
         $this->visibleBoss = 0;
115 115
         $this->visibleDrh = 0;
116
-        $this->visibleGuest= 0;
116
+        $this->visibleGuest = 0;
117 117
         $this->visibleSessionAdmin = 0;
118 118
         $this->visibleStudent = 0;
119 119
         $this->visibleTeacher = 0;
Please login to merge, or discard this patch.
plugin/sepe/src/identification-data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
     $tpl->assign('content', $content);
37 37
     $tpl->display_one_col_template();
38 38
 } else {
39
-    header('Location:' . api_get_path(WEB_PATH));
39
+    header('Location:'.api_get_path(WEB_PATH));
40 40
 }
Please login to merge, or discard this patch.
plugin/sepe/src/configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
     $tpl->assign('content', $content);
37 37
     $tpl->display_one_col_template();
38 38
 } else {
39
-    header('Location:' . api_get_path(WEB_PATH));
39
+    header('Location:'.api_get_path(WEB_PATH));
40 40
 }
Please login to merge, or discard this patch.
plugin/sepe/src/specialty-classroom-edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
     $tpl->assign('content', $content);
37 37
     $tpl->display_one_col_template();
38 38
 } else {
39
-    header('Location:' . api_get_path(WEB_PATH));
39
+    header('Location:'.api_get_path(WEB_PATH));
40 40
 }
Please login to merge, or discard this patch.
plugin/sepe/install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Config the plugin
5 5
  * @package chamilo.plugin.sepe
6 6
  */
7
-require_once __DIR__ . '/config.php';
7
+require_once __DIR__.'/config.php';
8 8
 
9 9
 if (!api_is_platform_admin()) {
10 10
     die ('You must have admin permissions to install plugins');
Please login to merge, or discard this patch.
main/admin/course_edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             ON (u.user_id=url_rel_user.user_id)
69 69
             WHERE
70 70
                 url_rel_user.access_url_id = $urlId AND
71
-                status = 1" . $order_clause;
71
+                status = 1".$order_clause;
72 72
 } else {
73 73
     $sql = "SELECT user_id, lastname, firstname
74 74
             FROM $table_user WHERE status='1'".$order_clause;
Please login to merge, or discard this patch.
plugin/sepe/ws/Sepe.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -351,10 +351,10 @@  discard block
 block discarded – undo
351 351
                     'action_id' => $actionId,
352 352
                     'specialty_origin' => $specialtyOrigin,
353 353
                     'professional_area' => $professionalArea,
354
-                    'specialty_code' =>$specialtyCode ,
354
+                    'specialty_code' =>$specialtyCode,
355 355
                     'center_origin' => $centerOrigin,
356 356
                     'center_code' => $centerCode,
357
-                    'start_date' => $startDate ,
357
+                    'start_date' => $startDate,
358 358
                     'end_date' => $endDate,
359 359
                     'modality_impartition' => $modalityImpartition,
360 360
                     'classroom_hours' => $classroomHours,
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                     'night_access_number' => $nightAccessNumber,
370 370
                     'night_total_duration' => $nightTotalDuration,
371 371
                     'attendees_count' => $attendeesCount,
372
-                    'learning_activity_count' => $learningActivityCount ,
372
+                    'learning_activity_count' => $learningActivityCount,
373 373
                     'attempt_count' => $attemptCount,
374 374
                     'evaluation_activity_count' => $evaluationActivityCount
375 375
                 );
@@ -401,17 +401,17 @@  discard block
 block discarded – undo
401 401
                             $centerCode = $centro->CODIGO_CENTRO;
402 402
                             $sql = "SELECT id FROM $tableCenters WHERE center_origin='".$centerOrigin."' AND center_code='".$centerCode."';";
403 403
                             $res = Database::query($sql);
404
-                            if (Database::num_rows($res)>0) {
404
+                            if (Database::num_rows($res) > 0) {
405 405
                                 $aux_row = Database::fetch_assoc($res);
406 406
                                 $centerId = $aux_row['id'];
407 407
                             } else {
408 408
                                 $sql = "INSERT INTO $tableCenters (center_origin, center_code)
409
-                                        VALUES ('" . $centerOrigin . "','" . $centerCode . "');";
409
+                                        VALUES ('".$centerOrigin."','".$centerCode."');";
410 410
                                 Database::query($sql);
411 411
                                 $centerId = Database::insert_id();
412 412
                             }
413 413
                             $sql = "INSERT INTO $tableSpecialtyClassroom (specialty_id, center_id)
414
-                                    VALUES ('" . $specialtyId . "','" . $centerId . "')";
414
+                                    VALUES ('".$specialtyId."','".$centerId."')";
415 415
                             Database::query($sql);
416 416
                             $id = Database::insert_id();
417 417
                                 
@@ -451,12 +451,12 @@  discard block
 block discarded – undo
451 451
                                 $sql = "SELECT id FROM $tableTutors WHERE 
452 452
                                 document_type='".$documentType."' AND document_number='".$documentNumber."' AND document_letter='".$documentLetter."';";
453 453
                                 $res = Database::query($sql);
454
-                                if (Database::num_rows($res)>0) {
454
+                                if (Database::num_rows($res) > 0) {
455 455
                                     $aux_row = Database::fetch_assoc($res);
456 456
                                     $tutorId = $aux_row['id'];
457 457
                                 } else {
458 458
                                     $sql = "INSERT INTO $tableTutors (document_type, document_number, document_letter)
459
-                                        VALUES ('" . $documentType . "','" . $documentNumber . "','" . $documentLetter . "');";
459
+                                        VALUES ('".$documentType."','".$documentNumber."','".$documentLetter."');";
460 460
                                     Database::query($sql);
461 461
                                     $tutorId = Database::insert_id();
462 462
                                 }
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
                                     );
471 471
                                 }
472 472
                                 $sql = "INSERT INTO $tableSpecialityTutors (specialty_id, tutor_id, tutor_accreditation, professional_experience, teaching_competence, experience_teleforming, training_teleforming)
473
-                                        VALUES ('" . $specialtyId . "','" . $tutorId . "','" . $tutorAccreditation . "','" . $professionalExperience . "','" . $teachingCompetence . "','" . $experienceTeleforming . "','" . $trainingTeleforming . "');";
473
+                                        VALUES ('".$specialtyId."','".$tutorId."','".$tutorAccreditation."','".$professionalExperience."','".$teachingCompetence."','".$experienceTeleforming."','".$trainingTeleforming."');";
474 474
                                 Database::query($sql);
475 475
                             }
476 476
                         }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                     $documentLetterCompany = isset($participant->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->LETRA_NIF) ? $participant->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->LETRA_NIF : null;
513 513
                     if (!empty($documentTypeCompany) || !empty($documentNumberCompany) || !empty($documentLetterCompany)) {
514 514
                         $tmp_e = Database::query('SELECT id FROM '.$tableTutorsCompany.' WHERE document_type="'.$documentTypeCompany.'" AND document_number="'.$documentNumberCompany.'" AND document_letter="'.$documentLetterCompany.'";');
515
-                        if (Database::num_rows($tmp_e)>0) {
515
+                        if (Database::num_rows($tmp_e) > 0) {
516 516
                             $row_tmp = Database::fetch_assoc($tmp_e);
517 517
                             $tutorIdCompany = $row_tmp['id'];
518 518
                             Database::query("UPDATE $tableTutorsCompany SET company='1' WHERE id='".$tutorIdCompany."'");
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
                     $documentLetterTraining = isset($participant->CONTRATO_FORMACION->ID_TUTOR_FORMACION->LETRA_NIF) ? $participant->CONTRATO_FORMACION->ID_TUTOR_FORMACION->LETRA_NIF : null;
533 533
                     if (!empty($documentTypeTraining) || !empty($documentNumberTraining) || !empty($documentLetterTraining)) {
534 534
                         $tmp_f = Database::query('SELECT id FROM '.$tableTutorsCompany.' WHERE document_type="'.$documentTypeTraining.'" AND document_number="'.$documentNumberTraining.'" AND document_letter="'.$documentLetterTraining.'";');
535
-                        if (Database::num_rows($tmp_f)>0) {
535
+                        if (Database::num_rows($tmp_f) > 0) {
536 536
                             $row_tmp = Database::fetch_assoc($tmp_f);
537 537
                             $tutorIdTraining = $row_tmp['id'];
538 538
                             Database::query("UPDATE $tableTutorsCompany SET training='1' WHERE id='".$tutorIdTraining."'");
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
                         
625 625
                         $table_aux = Database::get_main_table('plugin_sepe_participants_specialty');
626 626
                         $sql = "INSERT INTO $table_aux (participant_id,specialty_origin,professional_area,specialty_code,registration_date,leaving_date,center_origin,center_code,start_date,end_date,final_result,final_qualification,final_score)
627
-                                VALUES ('" . $participantId . "','" . $specialtyOrigin . "','" . $professionalArea . "','" . $specialtyCode . "','" . $registrationDate . "','" . $leavingDate . "','" . $centerOrigin . "','" . $centerCode . "','" . $startDate . "','" . $endDate . "','" . $finalResult . "','" . $finalQualification . "','" . $finalScore . "');";
627
+                                VALUES ('".$participantId."','".$specialtyOrigin."','".$professionalArea."','".$specialtyCode."','".$registrationDate."','".$leavingDate."','".$centerOrigin."','".$centerCode."','".$startDate."','".$endDate."','".$finalResult."','".$finalQualification."','".$finalScore."');";
628 628
                         Database::query($sql);
629 629
                         $participantSpecialtyId = Database::insert_id();
630 630
                         if (empty($participantSpecialtyId)) {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
                                 
655 655
                                 $table_aux2 = Database::get_main_table('plugin_sepe_participants_specialty_tutorials');
656 656
                                 $sql = "INSERT INTO $table_aux2 (participant_specialty_id,center_origin,center_code,start_date,end_date)
657
-                                        VALUES ('" . $participantSpecialtyId . "','" . $centerOrigin . "','" . $centerCode . "','" . $startDate . "','" . $endDate . "');";
657
+                                        VALUES ('".$participantSpecialtyId."','".$centerOrigin."','".$centerCode."','".$startDate."','".$endDate."');";
658 658
                                 $rs = Database::query($sql);
659 659
                                 if (!$rs) {
660 660
                                     return array(
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
                 while ($aux = Database::fetch_assoc($rs)) {
749 749
                     $specialtyId = $aux['id'];
750 750
                     $sql = "SELECT * FROM $classRoomTable
751
-                            WHERE specialty_id='" . $specialtyId . "'";
751
+                            WHERE specialty_id='".$specialtyId."'";
752 752
                     $resultClassroom = Database::query($sql);
753 753
                     if (Database::num_rows($resultClassroom) === 0) {
754 754
                         return array(
@@ -773,14 +773,14 @@  discard block
 block discarded – undo
773 773
                         $classroomCenterList->append($classroomCenter);
774 774
                     }
775 775
                     $sql = "SELECT * FROM $specialityTutorTable
776
-                            WHERE specialty_id='" . $specialtyId . "'";
776
+                            WHERE specialty_id='".$specialtyId."'";
777 777
                     $resultSpecialtyTutor = Database::query($sql);
778 778
 
779 779
                     $trainingTutors = new ArrayObject();
780 780
                     if (Database::num_rows($resultSpecialtyTutor)) {
781 781
                         while ($tmp_aux = Database::fetch_assoc($resultSpecialtyTutor)) {
782 782
                             $sql = "SELECT * FROM $tutorTable
783
-                                    WHERE id='" . $tmp_aux['tutor_id'] . "'
783
+                                    WHERE id='".$tmp_aux['tutor_id']."'
784 784
                                     LIMIT 1";
785 785
                               $rs_tutor = Database::query($sql);
786 786
                             if (Database::num_rows($rs_tutor)) {
@@ -851,8 +851,8 @@  discard block
 block discarded – undo
851 851
                         $obj->HORARIO_TARDE->DURACION_TOTAL = $aux['afternoon_total_duration'];
852 852
                     }
853 853
 
854
-                    if (!empty($aux['night_participants_number'])  ||
855
-                        !empty($aux['night_access_number'])  ||
854
+                    if (!empty($aux['night_participants_number']) ||
855
+                        !empty($aux['night_access_number']) ||
856 856
                         !empty($aux['night_total_duration'])
857 857
                     ) {
858 858
                         $obj->HORARIO_NOCHE = new stdClass();
@@ -861,9 +861,9 @@  discard block
 block discarded – undo
861 861
                         $obj->HORARIO_NOCHE->DURACION_TOTAL = $aux['night_total_duration'];
862 862
                     }
863 863
 
864
-                    if (!empty($aux['attendees_count'])  ||
865
-                        !empty($aux['learning_activity_count'])  ||
866
-                        !empty($aux['attempt_count'])  ||
864
+                    if (!empty($aux['attendees_count']) ||
865
+                        !empty($aux['learning_activity_count']) ||
866
+                        !empty($aux['attempt_count']) ||
867 867
                         !empty($aux['evaluation_activity_count'])
868 868
                     ) {
869 869
                         $obj->SEGUIMIENTO_EVALUACION = new stdClass();
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
                     $participantId = $aux['id'];
896 896
 
897 897
                     $sql = "SELECT * FROM $participantsSpecialityTable
898
-                            WHERE participant_id='" . $participantId . "'";
898
+                            WHERE participant_id='".$participantId."'";
899 899
                     $resultParticipantSpecialty = Database::query($sql);
900 900
                     
901 901
                     $namespace = null;
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
                     while ($tmp = Database::fetch_assoc($resultParticipantSpecialty)) {
904 904
                         $participantSpecialtyId = $tmp['id'];
905 905
                         $sql = "SELECT * FROM $participantsSpecialityTutorialsTable
906
-                                WHERE participant_specialty_id='" . $participantSpecialtyId . "'";
906
+                                WHERE participant_specialty_id='".$participantSpecialtyId."'";
907 907
                         $resultTutorials = Database::query($sql);
908 908
                         $classroomTutorials = new ArrayObject();
909 909
 
Please login to merge, or discard this patch.