Completed
Push — 1.11.x ( 55a6a1...a914dc )
by José
60:32 queued 35:06
created
main/course_progress/index.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     'thematic_advance_delete'
47 47
 );
48 48
 
49
-$action  = 'thematic_details';
49
+$action = 'thematic_details';
50 50
 if (isset($_REQUEST['action']) && in_array($_REQUEST['action'], $actions)) {
51 51
     $action = $_REQUEST['action'];
52 52
 }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 $thematicControl = Session::read('thematic_control');
185 185
 
186 186
 if ($action == 'thematic_list') {
187
-    $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('ThematicControl'));
187
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('ThematicControl'));
188 188
 }
189 189
 if ($action == 'thematic_add') {
190 190
     $interbreadcrumb[] = array(
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
         'url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl,
199 199
         'name' => get_lang('ThematicControl')
200 200
     );
201
-    $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('EditThematicSection'));
201
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('EditThematicSection'));
202 202
 }
203 203
 if ($action == 'thematic_details') {
204
-    $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('ThematicControl'));
204
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('ThematicControl'));
205 205
 }
206 206
 if ($action == 'thematic_plan_list' || $action == 'thematic_plan_delete') {
207 207
     $interbreadcrumb[] = array(
@@ -216,22 +216,22 @@  discard block
 block discarded – undo
216 216
     }
217 217
 }
218 218
 if ($action == 'thematic_plan_add' || $action == 'thematic_plan_edit') {
219
-    $interbreadcrumb[] = array ('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
220
-    $interbreadcrumb[] = array ('url' => 'index.php?'.api_get_cidreq().'&action=thematic_plan_list&thematic_id='.$thematic_id, 'name' => get_lang('ThematicPlan').' ('.$thematic_data['title'].')');
219
+    $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
220
+    $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq().'&action=thematic_plan_list&thematic_id='.$thematic_id, 'name' => get_lang('ThematicPlan').' ('.$thematic_data['title'].')');
221 221
     if ($description_type >= ADD_THEMATIC_PLAN) {
222
-        $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('NewBloc'));
222
+        $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('NewBloc'));
223 223
     } else {
224
-        $interbreadcrumb[] = array ('url' => '#', 'name' => $default_thematic_plan_title[$description_type]);
224
+        $interbreadcrumb[] = array('url' => '#', 'name' => $default_thematic_plan_title[$description_type]);
225 225
     }
226 226
 }
227 227
 if ($action == 'thematic_advance_list' || $action == 'thematic_advance_delete') {
228
-    $interbreadcrumb[] = array ('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
229
-    $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('ThematicAdvance').' ('.$thematic_data['title'].')');
228
+    $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
229
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('ThematicAdvance').' ('.$thematic_data['title'].')');
230 230
 }
231 231
 if ($action == 'thematic_advance_add' || $action == 'thematic_advance_edit') {
232
-    $interbreadcrumb[] = array ('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
233
-    $interbreadcrumb[] = array ('url' => 'index.php?'.api_get_cidreq().'&action=thematic_advance_list&thematic_id='.$thematic_id, 'name' => get_lang('ThematicAdvance').' ('.$thematic_data['title'].')');
234
-    $interbreadcrumb[] = array ('url' => '#', 'name' => get_lang('NewThematicAdvance'));
232
+    $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq().'&action='.$thematicControl, 'name' => get_lang('ThematicControl'));
233
+    $interbreadcrumb[] = array('url' => 'index.php?'.api_get_cidreq().'&action=thematic_advance_list&thematic_id='.$thematic_id, 'name' => get_lang('ThematicAdvance').' ('.$thematic_data['title'].')');
234
+    $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('NewThematicAdvance'));
235 235
 }
236 236
 
237 237
 // Distpacher actions to controller
Please login to merge, or discard this patch.
main/inc/lib/plugin.lib.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
             // Extra options
427 427
             $plugin_settings = api_get_settings_params(
428 428
                 array(
429
-                    "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins','setting')
429
+                    "subkey = ? AND category = ? AND type = ? " => array($plugin_name, 'Plugins', 'setting')
430 430
                 )
431 431
             );
432 432
 
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
             if (!empty($obj->course_settings)) {
533 533
                 if (is_file(api_get_path(SYS_CODE_PATH).'img/icons/'.ICON_SIZE_SMALL.'/'.$plugin_name.'.png')) {
534 534
                     $icon = Display::return_icon(
535
-                        $plugin_name . '.png',
535
+                        $plugin_name.'.png',
536 536
                         Security::remove_XSS($pluginTitle),
537 537
                         '',
538 538
                         ICON_SIZE_SMALL
@@ -548,18 +548,18 @@  discard block
 block discarded – undo
548 548
 
549 549
                 $form->addHtml('<div class="panel panel-default">');
550 550
                 $form->addHtml('
551
-                    <div class="panel-heading" role="tab" id="heading-' . $plugin_name . '-settings">
551
+                    <div class="panel-heading" role="tab" id="heading-' . $plugin_name.'-settings">
552 552
                         <h4 class="panel-title">
553
-                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-' . $plugin_name . '-settings" aria-expanded="false" aria-controls="collapse-' . $plugin_name . '-settings">
553
+                            <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-' . $plugin_name.'-settings" aria-expanded="false" aria-controls="collapse-'.$plugin_name.'-settings">
554 554
                 ');
555
-                $form->addHtml($icon . ' ' . $pluginTitle);
555
+                $form->addHtml($icon.' '.$pluginTitle);
556 556
                 $form->addHtml('
557 557
                             </a>
558 558
                         </h4>
559 559
                     </div>
560 560
                 ');
561 561
                 $form->addHtml('
562
-                    <div id="collapse-' . $plugin_name . '-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-' . $plugin_name . '-settings">
562
+                    <div id="collapse-' . $plugin_name.'-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-'.$plugin_name.'-settings">
563 563
                         <div class="panel-body">
564 564
                 ');
565 565
 
Please login to merge, or discard this patch.
main/inc/global_error_message.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             $global_error_message['description'] = $IncorrectPhpVersionDescription;
101 101
             break;
102 102
         case 2:
103
-            require __DIR__ . '/../install/version.php';
103
+            require __DIR__.'/../install/version.php';
104 104
             $global_error_message['section'] = $SectionInstallation;
105 105
             $global_error_message['title'] = $InstallationTitle;
106 106
             if (($pos = strpos($InstallationDescription, '%s')) === false) {
Please login to merge, or discard this patch.
main/exercise/tests_category.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 {
198 198
     $action = Security::remove_XSS($action);
199 199
     // initiate the object
200
-    $form = new FormValidator('note', 'post', api_get_self() . '?action=' . $action.'&'.api_get_cidreq());
200
+    $form = new FormValidator('note', 'post', api_get_self().'?action='.$action.'&'.api_get_cidreq());
201 201
     // Setting the form elements
202 202
     $form->addElement('header', get_lang('AddACategory'));
203 203
     $form->addElement('text', 'category_name', get_lang('CategoryName'), array('size' => '95'));
@@ -237,23 +237,23 @@  discard block
 block discarded – undo
237 237
 function displayActionBar()
238 238
 {
239 239
     echo '<div class="actions">';
240
-    echo '<a href="'.api_get_path(WEB_CODE_PATH).'exercise/exercise.php?' . api_get_cidreq() . '">' .
241
-            Display::return_icon('back.png', get_lang('GoBackToQuestionList'), '', ICON_SIZE_MEDIUM) . '</a>';
240
+    echo '<a href="'.api_get_path(WEB_CODE_PATH).'exercise/exercise.php?'.api_get_cidreq().'">'.
241
+            Display::return_icon('back.png', get_lang('GoBackToQuestionList'), '', ICON_SIZE_MEDIUM).'</a>';
242 242
 
243
-    echo '<a href="' . api_get_self() . '?action=addcategory&'.api_get_cidreq().'">' .
244
-        Display::return_icon('question_category.gif', get_lang('AddACategory')) . '</a>';
243
+    echo '<a href="'.api_get_self().'?action=addcategory&'.api_get_cidreq().'">'.
244
+        Display::return_icon('question_category.gif', get_lang('AddACategory')).'</a>';
245 245
 
246 246
     echo Display::url(
247 247
         Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), [], ICON_SIZE_MEDIUM),
248
-        api_get_self() . '?action=export_category&'.api_get_cidreq()
248
+        api_get_self().'?action=export_category&'.api_get_cidreq()
249 249
     );
250 250
 
251 251
     echo Display::url(
252 252
         Display::return_icon('import_csv.png', get_lang('ImportAsCSV'), [], ICON_SIZE_MEDIUM),
253
-        api_get_self() . '?action=import_category&'.api_get_cidreq()
253
+        api_get_self().'?action=import_category&'.api_get_cidreq()
254 254
     );
255 255
 
256 256
     echo '</div>';
257 257
     echo "<br/>";
258
-    echo "<fieldset><legend>" . get_lang('QuestionCategory') . "</legend></fieldset>";
258
+    echo "<fieldset><legend>".get_lang('QuestionCategory')."</legend></fieldset>";
259 259
 }
Please login to merge, or discard this patch.
main/gradebook/lib/fe/evalform.class.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             'onchange' => 'document.add_users_to_evaluation.submit()'
90 90
         ));
91 91
         $select->addOption('', '');
92
-        for ($i = 65; $i <= 90; $i ++) {
92
+        for ($i = 65; $i <= 90; $i++) {
93 93
             $letter = chr($i);
94 94
             if (isset($this->extra) && $this->extra == $letter) {
95 95
                 $select->addOption($letter, $letter, 'selected');
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         );
111 111
         foreach ($this->evaluation_object->get_not_subscribed_students() as $user) {
112 112
             if ((!isset($this->extra)) || empty($this->extra) || api_strtoupper(api_substr($user[1], 0, 1)) == $this->extra) {
113
-                $select->addoption($user[1] . ' ' . $user[2] . ' (' . $user[3] . ')', $user[0]);
113
+                $select->addoption($user[1].' '.$user[2].' ('.$user[3].')', $user[0]);
114 114
             }
115 115
         }
116 116
         $this->addButtonCreate(get_lang('AddUserToEval'), 'submit_button');
@@ -138,21 +138,21 @@  discard block
 block discarded – undo
138 138
         if (api_is_western_name_order()) {
139 139
             $renderer->setHeaderTemplate(
140 140
                 '<tr>
141
-    		      <th>' . get_lang('OfficialCode') . '</th>
142
-    		      <th>' . get_lang('UserName') . '</th>
143
-    		      <th>' . get_lang('FirstName') . '</th>
144
-    		      <th>' . get_lang('LastName') . '</th>
145
-    		      <th>' . get_lang('Qualify') . '</th>
141
+    		      <th>' . get_lang('OfficialCode').'</th>
142
+    		      <th>' . get_lang('UserName').'</th>
143
+    		      <th>' . get_lang('FirstName').'</th>
144
+    		      <th>' . get_lang('LastName').'</th>
145
+    		      <th>' . get_lang('Qualify').'</th>
146 146
     		   </tr>'
147 147
             );
148 148
         } else {
149 149
             $renderer->setHeaderTemplate(
150 150
                 '<tr>
151
-                  <th>' . get_lang('OfficialCode') . '</th>
152
-                  <th>' . get_lang('UserName') . '</th>
153
-                  <th>' . get_lang('LastName') . '</th>
154
-                  <th>' . get_lang('FirstName') . '</th>
155
-                  <th>' . get_lang('Qualify') . '</th>
151
+                  <th>' . get_lang('OfficialCode').'</th>
152
+                  <th>' . get_lang('UserName').'</th>
153
+                  <th>' . get_lang('LastName').'</th>
154
+                  <th>' . get_lang('FirstName').'</th>
155
+                  <th>' . get_lang('Qualify').'</th>
156 156
                </tr>'
157 157
             );
158 158
         }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 )
189 189
             );
190 190
 
191
-            $this->addRule('score[' . $result->get_id() . ']', get_lang('OnlyNumbers'), 'numeric');
191
+            $this->addRule('score['.$result->get_id().']', get_lang('OnlyNumbers'), 'numeric');
192 192
             $this->addRule(
193 193
                 array(
194 194
                     'score['.$result->get_id().']',
@@ -207,25 +207,25 @@  discard block
 block discarded – undo
207 207
                 'compare',
208 208
                 '>='
209 209
             );
210
-            $defaults['score[' . $result->get_id() . ']'] = $result->get_score();
210
+            $defaults['score['.$result->get_id().']'] = $result->get_score();
211 211
 
212 212
             if (api_is_western_name_order()) {
213
-                $user_info = '<td align="left" >' . $user['firstname'] . '</td>';
214
-                $user_info .= '<td align="left" >' . $user['lastname'] . '</td>';
213
+                $user_info = '<td align="left" >'.$user['firstname'].'</td>';
214
+                $user_info .= '<td align="left" >'.$user['lastname'].'</td>';
215 215
             } else {
216
-                $user_info = '<td align="left" >' . $user['lastname'] . '</td>';
217
-                $user_info .= '<td align="left" >' . $user['firstname'] . '</td>';
216
+                $user_info = '<td align="left" >'.$user['lastname'].'</td>';
217
+                $user_info .= '<td align="left" >'.$user['firstname'].'</td>';
218 218
             }
219 219
 
220 220
             $template = '<tr>
221
-		      <td align="left" >' . $user['official_code'] . '</td>
222
-		      <td align="left" >' . $user['username'] . '</td>
223
-		      ' . $user_info . '
224
-		       <td align="left">{element} / ' . $this->evaluation_object->get_max() . '
221
+		      <td align="left" >' . $user['official_code'].'</td>
222
+		      <td align="left" >' . $user['username'].'</td>
223
+		      ' . $user_info.'
224
+		       <td align="left">{element} / ' . $this->evaluation_object->get_max().'
225 225
 		         <!-- BEGIN error --><br /><span style="color: #ff0000;font-size:10px">{error}</span><!-- END error -->
226 226
 		      </td>
227 227
 		   </tr>';
228
-            $renderer->setElementTemplate($template, 'score[' . $result->get_id() . ']');
228
+            $renderer->setElementTemplate($template, 'score['.$result->get_id().']');
229 229
         }
230 230
         $this->setDefaults($defaults);
231 231
         $this->addButtonSave(get_lang('EditResult'), 'submit');
@@ -240,15 +240,15 @@  discard block
 block discarded – undo
240 240
     {
241 241
         $renderer = & $this->defaultRenderer();
242 242
         $renderer->setCustomElementTemplate('<span>{element}</span> ');
243
-        $this->addElement('static', null, null, '"' . $this->evaluation_object->get_name() . '" ');
244
-        $this->addElement('static', null, null, get_lang('MoveTo') . ' : ');
243
+        $this->addElement('static', null, null, '"'.$this->evaluation_object->get_name().'" ');
244
+        $this->addElement('static', null, null, get_lang('MoveTo').' : ');
245 245
         $select = $this->addElement('select', 'move_cat', null, null);
246 246
         $line = '';
247 247
         foreach ($this->evaluation_object->get_target_categories() as $cat) {
248 248
             for ($i = 0; $i < $cat[2]; $i++) {
249 249
                 $line .= '&mdash;';
250 250
             }
251
-            $select->addoption($line . ' ' . $cat[1], $cat[0]);
251
+            $select->addoption($line.' '.$cat[1], $cat[0]);
252 252
             $line = '';
253 253
         }
254 254
         $this->addButtonSave(get_lang('Ok'), 'submit');
@@ -278,21 +278,21 @@  discard block
 block discarded – undo
278 278
         if (api_is_western_name_order()) {
279 279
             $renderer->setHeaderTemplate(
280 280
                 '<tr>
281
-                  <th>' . get_lang('OfficialCode') . '</th>
282
-                  <th>' . get_lang('UserName') . '</th>
283
-                  <th>' . get_lang('FirstName') . '</th>
284
-                  <th>' . get_lang('LastName') . '</th>
285
-                  <th>' . get_lang('Qualify') . '</th>
281
+                  <th>' . get_lang('OfficialCode').'</th>
282
+                  <th>' . get_lang('UserName').'</th>
283
+                  <th>' . get_lang('FirstName').'</th>
284
+                  <th>' . get_lang('LastName').'</th>
285
+                  <th>' . get_lang('Qualify').'</th>
286 286
                </tr>'
287 287
             );
288 288
         } else {
289 289
             $renderer->setHeaderTemplate(
290 290
                 '<tr>
291
-                  <th>' . get_lang('OfficialCode') . '</th>
292
-                  <th>' . get_lang('UserName') . '</th>
293
-                  <th>' . get_lang('LastName') . '</th>
294
-                  <th>' . get_lang('FirstName') . '</th>
295
-                  <th>' . get_lang('Qualify') . '</th>
291
+                  <th>' . get_lang('OfficialCode').'</th>
292
+                  <th>' . get_lang('UserName').'</th>
293
+                  <th>' . get_lang('LastName').'</th>
294
+                  <th>' . get_lang('FirstName').'</th>
295
+                  <th>' . get_lang('Qualify').'</th>
296 296
                </tr>'
297 297
             );
298 298
         }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         $firstUser = true;
301 301
         foreach ($tblusers as $user) {
302 302
 
303
-            $element_name = 'score[' . $user[0] . ']';
303
+            $element_name = 'score['.$user[0].']';
304 304
             $scoreColumnProperties = array('maxlength' => 5);
305 305
             if ($firstUser) {
306 306
                 $scoreColumnProperties['autofocus'] = '';
@@ -319,19 +319,19 @@  discard block
 block discarded – undo
319 319
             $this->addRule(array($element_name, 'minvalue'), get_lang('UnderMin'), 'compare', '>=');
320 320
 
321 321
             if (api_is_western_name_order()) {
322
-                $user_info = '<td align="left" >' . $user[3] . '</td>';
323
-                $user_info .= '<td align="left" >' . $user[2] . '</td>';
322
+                $user_info = '<td align="left" >'.$user[3].'</td>';
323
+                $user_info .= '<td align="left" >'.$user[2].'</td>';
324 324
             } else {
325
-                $user_info = '<td align="left" >' . $user[2] . '</td>';
326
-                $user_info .= '<td align="left" >' . $user[3] . '</td>';
325
+                $user_info = '<td align="left" >'.$user[2].'</td>';
326
+                $user_info .= '<td align="left" >'.$user[3].'</td>';
327 327
             }
328 328
             $nr_users++;
329 329
 
330 330
             $template = '<tr>
331
-		      <td align="left" >' . $user[4] . '</td>
332
-		      <td align="left" >' . $user[1] . '</td>
333
-		      ' . $user_info . '
334
-		       <td align="left">{element} / ' . $this->evaluation_object->get_max() . '
331
+		      <td align="left" >' . $user[4].'</td>
332
+		      <td align="left" >' . $user[1].'</td>
333
+		      ' . $user_info.'
334
+		       <td align="left">{element} / ' . $this->evaluation_object->get_max().'
335 335
 		         <!-- BEGIN error --><br /><span style="color: #ff0000;font-size:10px">{error}</span><!-- END error -->
336 336
 		      </td>
337 337
             </tr>';
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         $renderer->setCustomElementTemplate('<span>{element}</span> ');
366 366
         $this->addElement('label', get_lang('User'), $userinfo['complete_name']);
367 367
 
368
-        $this->addText('score', array(get_lang('Score'), null, '/ ' . $this->evaluation_object->get_max()), false, array(
368
+        $this->addText('score', array(get_lang('Score'), null, '/ '.$this->evaluation_object->get_max()), false, array(
369 369
             'size' => '4',
370 370
             'class' => 'span1',
371 371
             'maxlength' => '5'
@@ -599,11 +599,11 @@  discard block
 block discarded – undo
599 599
             $link = LinkFactory :: get_evaluation_link($this->evaluation_object->get_id());
600 600
             $doc_url = $link->get_view_url($id);
601 601
             if ($doc_url != null) {
602
-                $opendocurl_start .= '<a href="' . $doc_url . '" target="_blank">';
602
+                $opendocurl_start .= '<a href="'.$doc_url.'" target="_blank">';
603 603
                 $opendocurl_end = '</a>';
604 604
             }
605 605
         }
606
-        return $opendocurl_start . api_get_person_name($firstname, $lastname) . ' (' . $username . ')' . $opendocurl_end;
606
+        return $opendocurl_start.api_get_person_name($firstname, $lastname).' ('.$username.')'.$opendocurl_end;
607 607
     }
608 608
 
609 609
     function sort_by_user($item1, $item2)
Please login to merge, or discard this patch.
main/gradebook/lib/fe/dataform.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 
42 42
     protected function build_pdf_export_form()
43 43
     {
44
-        $renderer =& $this->defaultRenderer();
44
+        $renderer = & $this->defaultRenderer();
45 45
         $renderer->setCustomElementTemplate('<span>{element}</span>');
46 46
         $this->addElement('header', get_lang('ChooseOrientation'));
47 47
         $this->addElement('radio', 'orientation', null, get_lang('Portrait'), 'portrait');
48 48
         $this->addElement('radio', 'orientation', null, get_lang('Landscape'), 'landscape');
49 49
         $this->addButtonExport(get_lang('Export'));
50
-        $this->setDefaults(array (
50
+        $this->setDefaults(array(
51 51
             'orientation' => 'portrait'
52 52
         ));
53 53
     }
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
         $this->addElement('radio', 'file_type', null, 'XML (Extensible Markup Language)', 'xml');
60 60
         $this->addElement('radio', 'file_type', null, 'PDF (Portable Document Format)', 'pdf');
61 61
         $this->addButtonExport(get_lang('Export'));
62
-        $this->setDefaults(array (
62
+        $this->setDefaults(array(
63 63
             'file_type' => 'csv'
64 64
         ));
65 65
     }
66 66
 
67
-    protected function build_export_form_option($show_pdf=true)
67
+    protected function build_export_form_option($show_pdf = true)
68 68
     {
69 69
         $this->addElement('header', get_lang('ChooseFormat'));
70 70
         $this->addElement('radio', 'file_type', get_lang('OutputFileType'), 'CSV (Comma-Separated Values)', 'csv');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             array('disabled')
79 79
         );
80 80
         $this->addButtonExport(get_lang('Export'));
81
-        $this->setDefaults(array (
81
+        $this->setDefaults(array(
82 82
             'file_type' => 'csv'
83 83
         ));
84 84
     }
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $this->addElement('hidden', 'formSent');
89 89
         $this->addElement('header', get_lang('ImportFileLocation'));
90
-        $this->addElement('file', 'import_file',get_lang('Location'));
91
-        $allowed_file_types = array (
90
+        $this->addElement('file', 'import_file', get_lang('Location'));
91
+        $allowed_file_types = array(
92 92
             'xml',
93 93
             'csv'
94 94
         );
95 95
         //$this->addRule('file', get_lang('InvalidExtension') . ' (' . implode(',', $allowed_file_types) . ')', 'filetype', $allowed_file_types);
96
-        $this->addElement('radio', 'file_type', get_lang('FileType'), 'CSV (<a href="docs/example_csv.html" target="_blank">' . get_lang('ExampleCSVFile') . '</a>)', 'csv');
97
-        $this->addElement('radio', 'file_type', null, 'XML (<a href="docs/example_xml.html" target="_blank">' . get_lang('ExampleXMLFile') . '</a>)', 'xml');
96
+        $this->addElement('radio', 'file_type', get_lang('FileType'), 'CSV (<a href="docs/example_csv.html" target="_blank">'.get_lang('ExampleCSVFile').'</a>)', 'csv');
97
+        $this->addElement('radio', 'file_type', null, 'XML (<a href="docs/example_xml.html" target="_blank">'.get_lang('ExampleXMLFile').'</a>)', 'xml');
98 98
         $this->addElement('checkbox', 'overwrite', null, get_lang('OverwriteScores'));
99 99
         $this->addElement('checkbox', 'ignoreerrors', null, get_lang('IgnoreErrors'));
100 100
         $this->addButtonImport(get_lang('Ok'));
Please login to merge, or discard this patch.
main/lp/lp_view.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $this_section = SECTION_COURSES;
21 21
 
22 22
 if ($lp_controller_touched != 1) {
23
-    header('location: lp_controller.php?action=view&item_id=' . intval($_REQUEST['item_id']));
23
+    header('location: lp_controller.php?action=view&item_id='.intval($_REQUEST['item_id']));
24 24
     exit;
25 25
 }
26 26
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 //Impress js
119 119
 if ($_SESSION['oLP']->mode == 'impress') {
120 120
     $lp_id = $_SESSION['oLP']->get_id();
121
-    $url = api_get_path(WEB_CODE_PATH) . "lp/lp_impress.php?lp_id=$lp_id&" . api_get_cidreq();
121
+    $url = api_get_path(WEB_CODE_PATH)."lp/lp_impress.php?lp_id=$lp_id&".api_get_cidreq();
122 122
     header("Location: $url");
123 123
     exit;
124 124
 }
@@ -136,15 +136,15 @@  discard block
 block discarded – undo
136 136
 
137 137
 // additional APIs
138 138
 $htmlHeadXtra[] = '<script>
139
-chamilo_courseCode = "' . $course_code . '";
139
+chamilo_courseCode = "' . $course_code.'";
140 140
 </script>';
141 141
 // Document API
142 142
 $htmlHeadXtra[] = '<script src="js/documentapi.js" type="text/javascript" language="javascript"></script>';
143 143
 // Storage API
144 144
 $htmlHeadXtra[] = '<script>
145
-var sv_user = \'' . api_get_user_id() . '\';
145
+var sv_user = \'' . api_get_user_id().'\';
146 146
 var sv_course = chamilo_courseCode;
147
-var sv_sco = \'' . $lp_id . '\';
147
+var sv_sco = \'' . $lp_id.'\';
148 148
 </script>'; // FIXME fetch sco and userid from a more reliable source directly in sotrageapi.js
149 149
 $htmlHeadXtra[] = '<script type="text/javascript" src="js/storageapi.js"></script>';
150 150
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         case 3:
217 217
             // aicc
218 218
             $_SESSION['oLP']->stop_previous_item(); // save status manually if asset
219
-            $htmlHeadXtra[] = '<script src="' . $_SESSION['oLP']->get_js_lib().'" type="text/javascript" language="javascript"></script>';
219
+            $htmlHeadXtra[] = '<script src="'.$_SESSION['oLP']->get_js_lib().'" type="text/javascript" language="javascript"></script>';
220 220
             $preReqCheck = $_SESSION['oLP']->prerequisites_match($lp_item_id);
221 221
             if ($preReqCheck === true) {
222 222
                 $src = $_SESSION['oLP']->get_link(
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
 // Update status, total_time from lp_item_view table when you finish the exercises in learning path.
239 239
 
240 240
 if ($debug) {
241
-    error_log('$type_quiz: ' . $type_quiz);
242
-    error_log('$_REQUEST[exeId]: ' . intval($_REQUEST['exeId']));
243
-    error_log('$lp_id: ' . $lp_id);
244
-    error_log('$_GET[lp_item_id]: ' . intval($_GET['lp_item_id']));
241
+    error_log('$type_quiz: '.$type_quiz);
242
+    error_log('$_REQUEST[exeId]: '.intval($_REQUEST['exeId']));
243
+    error_log('$lp_id: '.$lp_id);
244
+    error_log('$_GET[lp_item_id]: '.intval($_GET['lp_item_id']));
245 245
 }
246 246
 
247 247
 if (
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $safe_item_id == strval(intval($safe_item_id))
265 265
     ) {
266 266
         $sql = 'SELECT start_date, exe_date, exe_result, exe_weighting, exe_exo_id
267
-                FROM ' . $TBL_TRACK_EXERCICES . '
267
+                FROM ' . $TBL_TRACK_EXERCICES.'
268 268
                 WHERE exe_id = ' . $safe_exe_id;
269 269
         $res = Database::query($sql);
270 270
         $row_dates = Database::fetch_array($res);
@@ -278,14 +278,14 @@  discard block
 block discarded – undo
278 278
 
279 279
         $sql = "UPDATE $TBL_LP_ITEM SET
280 280
                     max_score = '$max_score'
281
-                WHERE c_id = $course_id AND id = '" . $safe_item_id . "'";
281
+                WHERE c_id = $course_id AND id = '".$safe_item_id."'";
282 282
         Database::query($sql);
283 283
 
284 284
         $sql = "SELECT id FROM $TBL_LP_ITEM_VIEW
285 285
                 WHERE
286 286
                     c_id = $course_id AND
287 287
                     lp_item_id = '$safe_item_id' AND
288
-                    lp_view_id = '" . $_SESSION['oLP']->lp_view_id . "'
288
+                    lp_view_id = '".$_SESSION['oLP']->lp_view_id."'
289 289
                 ORDER BY id DESC
290 290
                 LIMIT 1";
291 291
         $res_last_attempt = Database::query($sql);
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                         status = '$status',
315 315
                         score = $score,
316 316
                         total_time = $mytime
317
-                    WHERE id='" . $lp_item_view_id . "' AND c_id = $course_id ";
317
+                    WHERE id='".$lp_item_view_id."' AND c_id = $course_id ";
318 318
 
319 319
             if ($debug) {
320 320
                 error_log($sql);
@@ -324,17 +324,17 @@  discard block
 block discarded – undo
324 324
 
325 325
             $sql = "UPDATE $TBL_TRACK_EXERCICES SET
326 326
                         orig_lp_item_view_id = $lp_item_view_id
327
-                    WHERE exe_id = " . $safe_exe_id;
327
+                    WHERE exe_id = ".$safe_exe_id;
328 328
             Database::query($sql);
329 329
         }
330 330
     }
331 331
     if (intval($_GET['fb_type']) > 0) {
332 332
         $src = 'blank.php?msg=exerciseFinished';
333 333
     } else {
334
-        $src = api_get_path(WEB_CODE_PATH) . 'exercise/result.php?origin=learnpath&id=' . $safe_exe_id.'&'.api_get_cidreq();
334
+        $src = api_get_path(WEB_CODE_PATH).'exercise/result.php?origin=learnpath&id='.$safe_exe_id.'&'.api_get_cidreq();
335 335
 
336 336
         if ($debug) {
337
-            error_log('Calling URL: ' . $src);
337
+            error_log('Calling URL: '.$src);
338 338
         }
339 339
     }
340 340
     $autostart = 'false';
@@ -392,8 +392,8 @@  discard block
 block discarded – undo
392 392
 $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);
393 393
 $show_audioplayer = false;
394 394
 // Getting all the information about the item.
395
-$sql = "SELECT audio FROM " . $tbl_lp_item . "
396
-        WHERE c_id = $course_id AND lp_id = '" . $_SESSION['oLP']->lp_id . "'";
395
+$sql = "SELECT audio FROM ".$tbl_lp_item."
396
+        WHERE c_id = $course_id AND lp_id = '".$_SESSION['oLP']->lp_id."'";
397 397
 $res_media = Database::query($sql);
398 398
 
399 399
 if (Database::num_rows($res_media) > 0) {
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         'name' => get_lang('LearningPaths')
415 415
     );
416 416
     $interbreadcrumb[] = array(
417
-        'url' => api_get_self() . "?action=add_item&type=step&lp_id={$_SESSION['oLP']->lp_id}&isStudentView=false&".api_get_cidreq(true, true, 'course'),
417
+        'url' => api_get_self()."?action=add_item&type=step&lp_id={$_SESSION['oLP']->lp_id}&isStudentView=false&".api_get_cidreq(true, true, 'course'),
418 418
         'name' => $_SESSION['oLP']->get_name()
419 419
     );
420 420
 
@@ -426,12 +426,12 @@  discard block
 block discarded – undo
426 426
 
427 427
 // Return to course home.
428 428
 if ($is_allowed_to_edit) {
429
-    $buttonHomeUrl = 'lp_controller.php?' . api_get_cidreq(true, true, 'course') . '&' . http_build_query([
429
+    $buttonHomeUrl = 'lp_controller.php?'.api_get_cidreq(true, true, 'course').'&'.http_build_query([
430 430
         'isStudentView' => 'false',
431 431
         'action' => 'return_to_course_homepage'
432 432
     ]);
433 433
 } else {
434
-    $buttonHomeUrl = 'lp_controller.php?' . api_get_cidreq(true, true, 'course') . '&' . http_build_query([
434
+    $buttonHomeUrl = 'lp_controller.php?'.api_get_cidreq(true, true, 'course').'&'.http_build_query([
435 435
         'action' => 'return_to_course_homepage'
436 436
     ]);
437 437
 }
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
 
534 534
 $template->assign('lp_author', $_SESSION['oLP']->get_author());
535 535
 $template->assign('lp_mode', $_SESSION['oLP']->mode);
536
-$template->assign('lp_title_scorm',$_SESSION['oLP']->name);
536
+$template->assign('lp_title_scorm', $_SESSION['oLP']->name);
537 537
 $template->assign(
538 538
     'lp_html_toc',
539 539
     $_SESSION['oLP']->get_html_toc($get_toc_list)
Please login to merge, or discard this patch.
main/ticket/tickets.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     $.ajax({
20 20
         contentType: "application/x-www-form-urlencoded",
21 21
         beforeSend: function(object) {
22
-        $("div#"+div_course).html("<img src=\'' . $webLibPath . 'javascript/indicator.gif\' />"); },
22
+        $("div#"+div_course).html("<img src=\'' . $webLibPath.'javascript/indicator.gif\' />"); },
23 23
         type: "POST",
24 24
         url: "ticket_assign_log.php",
25 25
         data: "ticket_id="+ticket_id,
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 function display_advanced_search_form() {
43 43
     if ($("#advanced_search_form").css("display") == "none") {
44 44
         $("#advanced_search_form").css("display","block");
45
-        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')) . '&nbsp;' . get_lang('AdvancedSearch') . '\');
45
+        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_hide.gif', get_lang('Hide'), array('style' => 'vertical-align:middle')).'&nbsp;'.get_lang('AdvancedSearch').'\');
46 46
     } else {
47 47
         $("#advanced_search_form").css("display","none");
48
-        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')) . '&nbsp;' . get_lang('AdvancedSearch') . '\');
48
+        $("#img_plus_and_minus").html(\'&nbsp;' . Display::return_icon('div_show.gif', get_lang('Show'), array('style' => 'vertical-align:middle')).'&nbsp;'.get_lang('AdvancedSearch').'\');
49 49
     }
50 50
 }
51 51
 </script>';
@@ -219,21 +219,21 @@  discard block
 block discarded – undo
219 219
         null,
220 220
         '<a href="javascript://" class = "advanced-parameters" onclick="display_advanced_search_form();">'
221 221
         . '<span id="img_plus_and_minus">&nbsp;'
222
-        . Display::return_icon('div_show.gif', get_lang('Show')) . ' '
223
-        . get_lang('AdvancedSearch') . '</span></a>'
222
+        . Display::return_icon('div_show.gif', get_lang('Show')).' '
223
+        . get_lang('AdvancedSearch').'</span></a>'
224 224
     );
225 225
 
226 226
     echo '<div class="actions" >';
227 227
     if (api_is_platform_admin()) {
228
-        echo '<span class="left">' .
229
-                '<a href="' . api_get_path(WEB_CODE_PATH) . 'ticket/new_ticket.php?project_id='.$projectId.'">' .
230
-                    Display::return_icon('add.png', get_lang('Add'), '', ICON_SIZE_MEDIUM) . '</a>' .
231
-                '<a href="' . api_get_self() . '?action=export' . $get_parameter . $get_parameter2 . '&project_id='.$projectId.'">' .
232
-                    Display::return_icon('export_excel.png', get_lang('Export'), '', ICON_SIZE_MEDIUM) . '</a>';
228
+        echo '<span class="left">'.
229
+                '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/new_ticket.php?project_id='.$projectId.'">'.
230
+                    Display::return_icon('add.png', get_lang('Add'), '', ICON_SIZE_MEDIUM).'</a>'.
231
+                '<a href="'.api_get_self().'?action=export'.$get_parameter.$get_parameter2.'&project_id='.$projectId.'">'.
232
+                    Display::return_icon('export_excel.png', get_lang('Export'), '', ICON_SIZE_MEDIUM).'</a>';
233 233
 
234 234
         echo Display::url(
235 235
             Display::return_icon('settings.png', get_lang('Categories')),
236
-            api_get_path(WEB_CODE_PATH) . 'ticket/settings.php'
236
+            api_get_path(WEB_CODE_PATH).'ticket/settings.php'
237 237
         );
238 238
         echo '</span>';
239 239
     }
@@ -287,8 +287,8 @@  discard block
 block discarded – undo
287 287
 } else {
288 288
     if (api_get_setting('ticket_allow_student_add') === 'true') {
289 289
         echo '<div class="actions" >';
290
-        echo '<a href="' . api_get_path(WEB_CODE_PATH) . 'ticket/new_ticket.php?project_id='.$projectId.'">' .
291
-                Display::return_icon('add.png', get_lang('Add'), '', '32') .
290
+        echo '<a href="'.api_get_path(WEB_CODE_PATH).'ticket/new_ticket.php?project_id='.$projectId.'">'.
291
+                Display::return_icon('add.png', get_lang('Add'), '', '32').
292 292
              '</a>';
293 293
         echo '</div>';
294 294
     }
@@ -320,8 +320,8 @@  discard block
 block discarded – undo
320 320
     $table->set_header(6, get_lang('AssignedTo'), true);
321 321
     $table->set_header(7, get_lang('Message'), true);
322 322
 } else {
323
-    echo '<center><h1>' . get_lang('MyTickets') . '</h1></center>';
324
-    echo '<center><p>' . get_lang('TicketMsgWelcome') . '</p></center>';
323
+    echo '<center><h1>'.get_lang('MyTickets').'</h1></center>';
324
+    echo '<center><p>'.get_lang('TicketMsgWelcome').'</p></center>';
325 325
     $table->set_header(0, '#', true);
326 326
     $table->set_header(1, get_lang('Status'), false);
327 327
     $table->set_header(2, get_lang('Date'), true);
Please login to merge, or discard this patch.
main/inc/lib/internationalization.lib.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -633,10 +633,10 @@  discard block
 block discarded – undo
633 633
         $date_format = str_replace(
634 634
             array('%A', '%a', '%B', '%b'),
635 635
             array(
636
-                $translated['days_long'][(int)strftime('%w', $time)],
637
-                $translated['days_short'][(int)strftime('%w', $time)],
638
-                $translated['months_long'][(int)strftime('%m', $time) - 1],
639
-                $translated['months_short'][(int)strftime('%m', $time) - 1],
636
+                $translated['days_long'][(int) strftime('%w', $time)],
637
+                $translated['days_short'][(int) strftime('%w', $time)],
638
+                $translated['months_long'][(int) strftime('%m', $time) - 1],
639
+                $translated['months_short'][(int) strftime('%m', $time) - 1],
640 640
             ),
641 641
             $date_format
642 642
         );
@@ -1583,7 +1583,7 @@  discard block
 block discarded – undo
1583 1583
  * @return string					Returns the encoding identificator modified in suitable for comparison way.
1584 1584
  */
1585 1585
 function api_refine_encoding_id($encoding) {
1586
-    if (is_array($encoding)){
1586
+    if (is_array($encoding)) {
1587 1587
         return array_map('api_refine_encoding_id', $encoding);
1588 1588
     }
1589 1589
     return strtoupper(str_replace('_', '-', $encoding));
Please login to merge, or discard this patch.