Completed
Pull Request — 1.11.x (#1266)
by José
180:51 queued 138:18
created
src/Chamilo/CourseBundle/Entity/CLp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -989,7 +989,7 @@
 block discarded – undo
989 989
     }
990 990
 
991 991
     /**
992
-     * @return boolean
992
+     * @return \DateTime
993 993
      */
994 994
     public function getAccumulateScormTime()
995 995
     {
Please login to merge, or discard this patch.
main/lp/lp_add.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 }
74 74
 
75 75
 if (!empty($gradebook) && $gradebook == 'view') {
76
-    $interbreadcrumb[]= array (
76
+    $interbreadcrumb[] = array(
77 77
         'url' => '../gradebook/'.$_SESSION['gradebook_dest'],
78 78
         'name' => get_lang('ToolGradebook')
79 79
     );
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 $form = new FormValidator(
98 98
     'lp_add',
99 99
     'post',
100
-    api_get_path(WEB_CODE_PATH) . 'lp/lp_controller.php?'.api_get_cidreq()
100
+    api_get_path(WEB_CODE_PATH).'lp/lp_controller.php?'.api_get_cidreq()
101 101
 );
102 102
 
103 103
 // Form title
@@ -126,17 +126,17 @@  discard block
 block discarded – undo
126 126
 
127 127
 // Start date
128 128
 $form->addElement('checkbox', 'activate_start_date_check', null, get_lang('EnableStartTime'), array('onclick' => 'activate_start_date()'));
129
-$form->addElement('html','<div id="start_date_div" style="display:block;">');
129
+$form->addElement('html', '<div id="start_date_div" style="display:block;">');
130 130
 $form->addDatePicker('publicated_on', get_lang('PublicationDate'));
131
-$form->addElement('html','</div>');
131
+$form->addElement('html', '</div>');
132 132
 
133 133
 //End date
134 134
 $form->addElement('checkbox', 'activate_end_date_check', null, get_lang('EnableEndTime'), array('onclick' => 'activate_end_date()'));
135
-$form->addElement('html','<div id="end_date_div" style="display:none;">');
135
+$form->addElement('html', '<div id="end_date_div" style="display:none;">');
136 136
 $form->addDatePicker('expired_on', get_lang('ExpirationDate'));
137
-$form->addElement('html','</div>');
137
+$form->addElement('html', '</div>');
138 138
 
139
-$form->addElement('html','</div>');
139
+$form->addElement('html', '</div>');
140 140
 
141 141
 $defaults['activate_start_date_check']  = 1;
142 142
 
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 }
148 148
 
149 149
 $defaults['publicated_on'] = date('Y-m-d 08:00:00');
150
-$defaults['expired_on'] = date('Y-m-d 08:00:00',time()+86400);
150
+$defaults['expired_on'] = date('Y-m-d 08:00:00', time() + 86400);
151 151
 
152 152
 $form->setDefaults($defaults);
153 153
 $form->addButtonCreate(get_lang('CreateLearningPath'));
Please login to merge, or discard this patch.