Completed
Push — master ( 5da9ea...eef579 )
by Angel Fernando Quiroz
50:18 queued 17:36
created
main/lp/scorm_api.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -458,8 +458,8 @@
 block discarded – undo
458 458
     } else if(param == 'cmi.core.student_name'){
459 459
         // ---- cmi.core.student_name
460 460
         <?php
461
-          $who = addslashes($user['complete_name']);
462
-          echo "result='$who';";
461
+            $who = addslashes($user['complete_name']);
462
+            echo "result='$who';";
463 463
         ?>
464 464
     } else if(param == 'cmi.core.lesson_location'){
465 465
         // ---- cmi.core.lesson_location
Please login to merge, or discard this patch.
main/lp/content_makers.inc.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
     'Accent',
14 14
     'Accenture',
15 15
     'ADLNet',
16
-      'Articulate',
17
-      'ATutor',
18
-      'Blackboard',
19
-      'Calfat',
20
-      'Captivate',
16
+        'Articulate',
17
+        'ATutor',
18
+        'Blackboard',
19
+        'Calfat',
20
+        'Captivate',
21 21
     'Chamilo',
22 22
     'Chamilo 2',
23 23
     'Claroline',
Please login to merge, or discard this patch.
main/lp/lp_ajax_initialize.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
         $myistring = substr($myistring, 1);
85 85
     }
86 86
 
87
-	// Obtention des donnees d'objectifs
88
-	$mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE);
87
+    // Obtention des donnees d'objectifs
88
+    $mycoursedb = Database::get_course_table(TABLE_LP_IV_OBJECTIVE);
89 89
     $course_id = api_get_course_int_id();
90
-	$mylp_iv_id = $mylpi->db_item_view_id;
90
+    $mylp_iv_id = $mylpi->db_item_view_id;
91 91
 
92 92
     $phpobjectives = array();
93 93
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $phpobjectives[] = $row;
102 102
         }
103 103
     }
104
-	$myobjectives = json_encode($phpobjectives);
104
+    $myobjectives = json_encode($phpobjectives);
105 105
 
106 106
     $return .=
107 107
             "olms.score=".$myscore.";" .
Please login to merge, or discard this patch.
main/lp/scormOrganization.class.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
                     //if ($first_item->type == XML_ELEMENT_NODE) this is already check prior to the call to this function.
39 39
                     $children = $element->childNodes;
40 40
                     foreach ($children as $child) {
41
-                         switch ($child->nodeType) {
41
+                            switch ($child->nodeType) {
42 42
                             case XML_ELEMENT_NODE:
43 43
                                 switch ($child->tagName) {
44 44
                                     case 'item':
45 45
                                          $oItem = new scormItem('manifest', $child);
46
-                                         if ($oItem->identifier != '') {
46
+                                            if ($oItem->identifier != '') {
47 47
                                             $this->items[$oItem->identifier] = $oItem;
48
-                                         }
48
+                                            }
49 49
                                         break;
50 50
                                     case 'metadata':
51 51
                                         $this->metadata = new scormMetadata('manifest', $child);
@@ -58,24 +58,24 @@  discard block
 block discarded – undo
58 58
                                         break;
59 59
                                 }
60 60
                                 break;
61
-                             case XML_TEXT_NODE:
61
+                                case XML_TEXT_NODE:
62 62
                                  break;
63
-                         }
63
+                            }
64 64
                     }
65 65
 
66 66
                     if ($element->hasAttributes()) {
67
-                         $attributes = $element->attributes;
68
-                         //$keep_href = '';
69
-                         foreach ($attributes as $attrib) {
70
-                             switch ($attrib->name) {
71
-                                 case 'identifier':
67
+                            $attributes = $element->attributes;
68
+                            //$keep_href = '';
69
+                            foreach ($attributes as $attrib) {
70
+                                switch ($attrib->name) {
71
+                                    case 'identifier':
72 72
                                      $this->identifier = $attrib->value;
73
-                                     break;
74
-                                 case 'structure':
73
+                                        break;
74
+                                    case 'structure':
75 75
                                      $this->structure = $attrib->value;
76
-                                     break;
77
-                             }
78
-                         }
76
+                                        break;
77
+                                }
78
+                            }
79 79
                     }
80 80
 
81 81
                     return true;
Please login to merge, or discard this patch.
main/lp/aicc_api.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
           <?php
143 143
             $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
144 144
             echo "result='$who';";
145
-          ?>
145
+            ?>
146 146
     }else if(param == 'cmi.core.lesson_location'){
147 147
         result=lesson_location;
148 148
     }else if(param == 'cmi.core.total_time'){
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
           <?php
199 199
             $who = addslashes(api_get_person_name($_user['firstName'], $_user['lastName']));
200 200
             echo "result='$who';";
201
-          ?>	break;
201
+            ?>	break;
202 202
         case 'cmi.core.lesson_location'	:
203 203
             result='';
204 204
             break;
@@ -322,12 +322,12 @@  discard block
 block discarded – undo
322 322
 }
323 323
 <?php
324 324
 /**
325
- * Chamilo-specific code that deals with event handling and inter-frames
326
- * messaging/refreshing.
327
- * Note that from now on, the Chamilo JS code in this library will act as
328
- * a controller, of the MVC pattern, and receive all requests for frame
329
- * updates, then redispatch to any frame concerned.
330
- */
325
+     * Chamilo-specific code that deals with event handling and inter-frames
326
+     * messaging/refreshing.
327
+     * Note that from now on, the Chamilo JS code in this library will act as
328
+     * a controller, of the MVC pattern, and receive all requests for frame
329
+     * updates, then redispatch to any frame concerned.
330
+     */
331 331
 ?>
332 332
 /**
333 333
  * Defining the AJAX-object class to be made available from other frames.
Please login to merge, or discard this patch.
main/exercise/hotspot_updatescore.inc.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
 $exerciseId = $objExercise->selectId();
21 21
 if ($_GET['answerId'] == "0") { // click is NOT on a hotspot
22 22
     $hit = 0;
23
-	$answerId = $hotspotId;
23
+    $answerId = $hotspotId;
24 24
 
25
-	// remove from session
26
-	unset($_SESSION['exerciseResult'][$questionId][$answerId]);
25
+    // remove from session
26
+    unset($_SESSION['exerciseResult'][$questionId][$answerId]);
27 27
 } else { // user clicked ON a hotspot
28
-	$hit = 1;
29
-	$answerId = $hotspotId;
28
+    $hit = 1;
29
+    $answerId = $hotspotId;
30 30
 
31
-	// Save into session
32
-	$_SESSION['exerciseResult'][$questionId][$answerId] = $hit;
31
+    // Save into session
32
+    $_SESSION['exerciseResult'][$questionId][$answerId] = $hit;
33 33
 }
34 34
 
35 35
 //round-up the coordinates
Please login to merge, or discard this patch.
main/inc/lib/dashboard.lib.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -307,8 +307,8 @@  discard block
 block discarded – undo
307 307
             }
308 308
         }
309 309
 
310
-		return $block_data;
311
-	}
310
+        return $block_data;
311
+    }
312 312
 
313 313
     /**
314 314
      * get data about enabled dashboard block (stored insise block table)
@@ -491,42 +491,42 @@  discard block
 block discarded – undo
491 491
         return $data;
492 492
     }
493 493
 
494
-	/**
495
-	 * This function update extra user blocks data after closing a dashboard block
496
-	 * @param int 		User id
497
-	 * @param string	plugin path
498
-	 * @param integer $user_id
499
-	 * @return bool
500
-	 */
501
-	public static function close_user_block($user_id, $path)
494
+    /**
495
+     * This function update extra user blocks data after closing a dashboard block
496
+     * @param int 		User id
497
+     * @param string	plugin path
498
+     * @param integer $user_id
499
+     * @return bool
500
+     */
501
+    public static function close_user_block($user_id, $path)
502 502
     {
503
-		$enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
504
-		$user_block_data = self::get_user_block_data($user_id);
505
-
506
-		foreach ($enabled_dashboard_blocks as $enabled_block) {
507
-			unset($user_block_data[$enabled_block['id']]);
508
-		}
509
-
510
-		// get columns and blocks id for updating extra user data
511
-		$columns = array();
512
-		$user_blocks_id = array();
513
-		foreach ($user_block_data as $data) {
514
-			$user_blocks_id[$data['block_id']] = true;
515
-			$columns[$data['block_id']] = $data['column'];
516
-		}
517
-
518
-		// update extra user blocks data
519
-		$upd_extra_field = self::store_user_blocks($user_id, $user_blocks_id, $columns);
520
-
521
-		return $upd_extra_field;
522
-	}
523
-
524
-	/**
525
-	 * get links for styles from dashboard plugins
526
-	 * @return string   links
527
-	 */
528
-	public static function get_links_for_styles_from_dashboard_plugins() {
529
-
530
-		return '<link rel="stylesheet" href="'.api_get_path(WEB_PLUGIN_PATH).'dashboard/css/default.css" type="text/css" />'.PHP_EOL;
531
-	}
503
+        $enabled_dashboard_blocks = self::get_enabled_dashboard_blocks($path);
504
+        $user_block_data = self::get_user_block_data($user_id);
505
+
506
+        foreach ($enabled_dashboard_blocks as $enabled_block) {
507
+            unset($user_block_data[$enabled_block['id']]);
508
+        }
509
+
510
+        // get columns and blocks id for updating extra user data
511
+        $columns = array();
512
+        $user_blocks_id = array();
513
+        foreach ($user_block_data as $data) {
514
+            $user_blocks_id[$data['block_id']] = true;
515
+            $columns[$data['block_id']] = $data['column'];
516
+        }
517
+
518
+        // update extra user blocks data
519
+        $upd_extra_field = self::store_user_blocks($user_id, $user_blocks_id, $columns);
520
+
521
+        return $upd_extra_field;
522
+    }
523
+
524
+    /**
525
+     * get links for styles from dashboard plugins
526
+     * @return string   links
527
+     */
528
+    public static function get_links_for_styles_from_dashboard_plugins() {
529
+
530
+        return '<link rel="stylesheet" href="'.api_get_path(WEB_PLUGIN_PATH).'dashboard/css/default.css" type="text/css" />'.PHP_EOL;
531
+    }
532 532
 }
Please login to merge, or discard this patch.
main/exercise/hotpotatoes_exercise_report.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 }
45 45
 
46 46
 if (!$is_allowedToEdit) {
47
-   // api_not_allowed();
47
+    // api_not_allowed();
48 48
 }
49 49
 
50 50
 if (!empty($_REQUEST['path'])) {
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
         get_lang('Actions')
190 190
     );
191 191
 
192
-  // Column config
193
-  // @todo fix search firstname/lastname that doesn't work. rmove search for the moment
192
+    // Column config
193
+    // @todo fix search firstname/lastname that doesn't work. rmove search for the moment
194 194
     $column_model = array(
195 195
         array('name' => 'firstname', 'index' => 'firstname', 'width' => '50', 'align' => 'left', 'search' => 'false'),
196 196
         array(
Please login to merge, or discard this patch.
main/lp/lp_edit.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,8 +178,8 @@
 block discarded – undo
178 178
 );
179 179
 $display_date = 'none';
180 180
 if (!empty($expired_on)) {
181
-	$display_date = 'block';
182
-	$defaults['activate_end_date_check'] = 1;
181
+    $display_date = 'block';
182
+    $defaults['activate_end_date_check'] = 1;
183 183
 }
184 184
 
185 185
 $form->addElement('html', '<div id="end_date_div" style="display:'.$display_date.';">');
Please login to merge, or discard this patch.