Test Setup Failed
Push — master ( e15afb...f173a6 )
by Angel Fernando Quiroz
30:31
created
main/admin/access_url_edit_course_category_to_url.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -120,12 +120,12 @@  discard block
 block discarded – undo
120 120
 }
121 121
 
122 122
 if ($add_type == 'multiple') {
123
-	$link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.
123
+    $link_add_type_unique = '<a href="'.api_get_self().'?add_type=unique&access_url_id='.$access_url_id.'">'.
124 124
         get_lang('SessionAddTypeUnique').'</a>';
125
-	$link_add_type_multiple = get_lang('SessionAddTypeMultiple');
125
+    $link_add_type_multiple = get_lang('SessionAddTypeMultiple');
126 126
 } else {
127
-	$link_add_type_unique = get_lang('SessionAddTypeUnique');
128
-	$link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.
127
+    $link_add_type_unique = get_lang('SessionAddTypeUnique');
128
+    $link_add_type_multiple = '<a href="'.api_get_self().'?add_type=multiple&access_url_id='.$access_url_id.'">'.
129 129
         get_lang('SessionAddTypeMultiple').'</a>';
130 130
 }
131 131
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         } else {
229 229
             echo '<button class="save" onclick="valide()" >'.get_lang('Edit').'</button>';
230 230
         }
231
-		?>
231
+        ?>
232 232
 	</td>
233 233
 </tr>
234 234
 </table>
Please login to merge, or discard this patch.
main/exercise/multiple_answer_combination.class.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,9 +177,9 @@
 block discarded – undo
177 177
     }
178 178
 
179 179
     /**
180
-	 * abstract function which creates the form to create/edit the answers of the question
181
-	 * @param FormValidator $form
182
-	 */
180
+     * abstract function which creates the form to create/edit the answers of the question
181
+     * @param FormValidator $form
182
+     */
183 183
     public function processAnswersCreation($form)
184 184
     {
185 185
         $questionWeighting = $nbrGoodAnswers = 0;
Please login to merge, or discard this patch.
main/exercise/multiple_answer_true_false.class.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -235,13 +235,13 @@  discard block
 block discarded – undo
235 235
     }
236 236
 
237 237
     /**
238
-	 * abstract function which creates the form to create / edit the answers of the question
239
-	 * @param FormValidator $form
240
-	 */
238
+     * abstract function which creates the form to create / edit the answers of the question
239
+     * @param FormValidator $form
240
+     */
241 241
     public function processAnswersCreation($form)
242 242
     {
243
-		$questionWeighting = $nbrGoodAnswers = 0;
244
-		$objAnswer = new Answer($this->id);
243
+        $questionWeighting = $nbrGoodAnswers = 0;
244
+        $objAnswer = new Answer($this->id);
245 245
         $nb_answers = $form->getSubmitValue('nb_answers');
246 246
         //$options_count    = $form->getSubmitValue('options_count');
247 247
         $course_id = api_get_course_int_id();
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         $new_options = Question::readQuestionOption($this->id, $course_id);
274 274
         $sorted_by_position = array();
275 275
         foreach ($new_options as $item) {
276
-        	$sorted_by_position[$item['position']] = $item;
276
+            $sorted_by_position[$item['position']] = $item;
277 277
         }
278 278
 
279 279
         /* Saving quiz_question.extra values that has the correct scores of
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
                 // change the default values from the form 1 and 2 by the correct "option id" registered
296 296
                 $goodAnswer = $sorted_by_position[$goodAnswer]['id'];
297 297
             }
298
-    	    $questionWeighting += $extra_values[0]; //By default 0 has the correct answers
298
+            $questionWeighting += $extra_values[0]; //By default 0 has the correct answers
299 299
             $objAnswer->createAnswer($answer, $goodAnswer, $comment, '', $i);
300 300
         }
301 301
 
Please login to merge, or discard this patch.
main/inc/lib/extra_field.lib.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         'changeable',
21 21
         'filter',
22 22
         'extra_field_type',
23
-         /* Enable this when field_loggeable is introduced as a table field (2.0)
23
+            /* Enable this when field_loggeable is introduced as a table field (2.0)
24 24
         'field_loggeable',
25 25
          */
26 26
         'created_at'
@@ -2000,7 +2000,7 @@  discard block
 block discarded – undo
2000 2000
                 'align' => 'left',
2001 2001
                 'sortable' => 'true',
2002 2002
             ),
2003
-             array(
2003
+                array(
2004 2004
                 'name' => 'visible_to_others',
2005 2005
                 'index' => 'visible_to_others',
2006 2006
                 'width' => '35',
Please login to merge, or discard this patch.
custompages/language.inc.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
     krsort($langs, SORT_NUMERIC);
30 30
     // Choosing the best match
31 31
     foreach ($langs as $weight => $codes) {
32
-		foreach ($codes as $code) {
33
-        	if (in_array($code, $available_langs)) {
34
-            	return $code;
35
-        	}
36
-		}
32
+        foreach ($codes as $code) {
33
+            if (in_array($code, $available_langs)) {
34
+                return $code;
35
+            }
36
+        }
37 37
     }
38 38
     // No match
39 39
     return null;
Please login to merge, or discard this patch.
main/dashboard/index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 $actions = array('listing', 'store_user_block', 'disable_block');
27 27
 $action = 'listing';
28 28
 if (isset($_GET['action']) && in_array($_GET['action'], $actions)) {
29
-	$action = $_GET['action'];
29
+    $action = $_GET['action'];
30 30
 }
31 31
 
32 32
 // load styles from dashboard plugins
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 $dashboard_controller = new DashboardController();
38 38
 
39 39
 if (isset($_GET['path'])) {
40
-	$path = $_GET['path'];
40
+    $path = $_GET['path'];
41 41
 }
42 42
 
43 43
 // distpacher actions to controller
Please login to merge, or discard this patch.
main/lp/scormMetadata.class.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -39,60 +39,60 @@
 block discarded – undo
39 39
                 case 'manifest': // Do the same as the default.
40 40
                      $children = $element->childNodes;
41 41
                     foreach ($children as $child) {
42
-                         switch ($child->nodeType) {
43
-                             case XML_ELEMENT_NODE:
42
+                            switch ($child->nodeType) {
43
+                                case XML_ELEMENT_NODE:
44 44
                                 // Could be 'lom', 'schema', 'schemaversion' or 'location'.
45 45
                                  switch ($child->tagName) {
46
-                                     case 'lom':
46
+                                        case 'lom':
47 47
                                          $childchildren = $child->childNodes;
48
-                                         foreach ($childchildren as $childchild) {
49
-                                             $this->lom = $childchild->nodeValue;
50
-                                         }
51
-                                         break;
52
-                                     case 'schema':
48
+                                            foreach ($childchildren as $childchild) {
49
+                                                $this->lom = $childchild->nodeValue;
50
+                                            }
51
+                                            break;
52
+                                        case 'schema':
53 53
                                          $childchildren = $child->childNodes;
54
-                                         foreach ($childchildren as $childchild) {
55
-                                             // There is generally only one child here.
56
-                                             $this->schema = $childchild->nodeValue;
57
-                                         }
58
-                                         break;
59
-                                     case 'schemaversion':
54
+                                            foreach ($childchildren as $childchild) {
55
+                                                // There is generally only one child here.
56
+                                                $this->schema = $childchild->nodeValue;
57
+                                            }
58
+                                            break;
59
+                                        case 'schemaversion':
60 60
                                          $childchildren = $child->childNodes;
61
-                                         foreach ($childchildren as $childchild) {
62
-                                             // There is generally only one child here.
63
-                                             $this->schemaversion = $childchild->nodeValue;
64
-                                         }
65
-                                         break;
66
-                                     case 'location':
61
+                                            foreach ($childchildren as $childchild) {
62
+                                                // There is generally only one child here.
63
+                                                $this->schemaversion = $childchild->nodeValue;
64
+                                            }
65
+                                            break;
66
+                                        case 'location':
67 67
                                          $childchildren = $child->childNodes;
68
-                                         foreach ($childchildren as $childchild) {
69
-                                             // There is generally only one child here.
70
-                                             $this->location = $childchild->nodeValue;
71
-                                         }
72
-                                         break;
73
-                                 }
74
-                                 break;
75
-                             case XML_TEXT_NODE:
68
+                                            foreach ($childchildren as $childchild) {
69
+                                                // There is generally only one child here.
70
+                                                $this->location = $childchild->nodeValue;
71
+                                            }
72
+                                            break;
73
+                                    }
74
+                                    break;
75
+                                case XML_TEXT_NODE:
76 76
                                  if (trim($child->textContent) != '') {
77
-                                     if (count($children == 1)) {
78
-                                         // If this is the only child at this level and it is a content... save differently.
79
-                                         $this->text = $child->textContent;
80
-                                     } else {
81
-                                         $this->text[$element->tagName] = $child->textContent;
82
-                                     }
83
-                                 }
84
-                                 break;
85
-                         }
86
-                     }
87
-                     $attributes = $element->attributes;
88
-                     //$keep_href = '';
89
-                     if (is_array($attributes)) {
90
-                         foreach ($attributes as $attrib) {
91
-                             if (trim($attrib->value) != '') {
92
-                                 $this->attribs[$attrib->name] = $attrib->value;
93
-                             }
94
-                         }
95
-                     }
77
+                                        if (count($children == 1)) {
78
+                                            // If this is the only child at this level and it is a content... save differently.
79
+                                            $this->text = $child->textContent;
80
+                                        } else {
81
+                                            $this->text[$element->tagName] = $child->textContent;
82
+                                        }
83
+                                    }
84
+                                    break;
85
+                            }
86
+                        }
87
+                        $attributes = $element->attributes;
88
+                        //$keep_href = '';
89
+                        if (is_array($attributes)) {
90
+                            foreach ($attributes as $attrib) {
91
+                                if (trim($attrib->value) != '') {
92
+                                    $this->attribs[$attrib->name] = $attrib->value;
93
+                                }
94
+                            }
95
+                        }
96 96
                     return true;
97 97
                     //break;
98 98
             }
Please login to merge, or discard this patch.
main/auth/ldap/login.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
 $loginLdapSucces = ldap_login($login, $password);
29 29
 
30 30
 if ($loginLdapSucces) {
31
-	$loginFailed = false;
32
-	$uidReset = true;
33
-	$_user['user_id'] = $uData['user_id'];
34
-	Session::write('_uid', $_uid);
31
+    $loginFailed = false;
32
+    $uidReset = true;
33
+    $_user['user_id'] = $uData['user_id'];
34
+    Session::write('_uid', $_uid);
35 35
     // Jand: copied from event_login in events.lib.php to enable login statistics:
36
-	Event::event_login($uData['user_id']);
36
+    Event::event_login($uData['user_id']);
37 37
 } else {
38
-	$loginFailed = true;
39
-	unset($_user['user_id']);
40
-	$uidReset = false;
38
+    $loginFailed = true;
39
+    unset($_user['user_id']);
40
+    $uidReset = false;
41 41
 }
Please login to merge, or discard this patch.
main/inc/lib/event_email_template.class.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * Constructor
20 20
      */
21
-	public function __construct()
21
+    public function __construct()
22 22
     {
23 23
         $this->table = Database::get_main_table(TABLE_EVENT_EMAIL_TEMPLATE);
24
-	}
24
+    }
25 25
 
26 26
     /**
27 27
      * @param array $where_conditions
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Displays the title + grid
41 41
      */
42
-	public function display()
42
+    public function display()
43 43
     {
44
-		// action links
45
-		$content = Display::actions(array(
44
+        // action links
45
+        $content = Display::actions(array(
46 46
                 array(
47 47
                     'url' => 'event_type.php',
48 48
                     'content' => Display::return_icon(
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
                         array(),
52 52
                         ICON_SIZE_MEDIUM
53 53
                     )
54
-                 )
54
+                    )
55 55
             )
56 56
         );
57 57
         $content .= Display::grid_html('event_email_template');
58 58
         return $content;
59
-	}
59
+    }
60 60
 
61 61
     /**
62 62
      * @return array
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 'Height' => '250',
101 101
             )
102 102
         );
103
-	    $status_list = $this->get_status_list();
103
+        $status_list = $this->get_status_list();
104 104
         $form->addElement('select', 'status', get_lang('Status'), $status_list);
105 105
         if ($action == 'edit') {
106 106
             $form->addElement('text', 'created_at', get_lang('CreatedAt'));
@@ -117,17 +117,17 @@  discard block
 block discarded – undo
117 117
         $defaults = $this->get($id);
118 118
 
119 119
         if (!empty($defaults['created_at'])) {
120
-        	$defaults['created_at'] = api_convert_and_format_date($defaults['created_at']);
120
+            $defaults['created_at'] = api_convert_and_format_date($defaults['created_at']);
121 121
         }
122 122
         if (!empty($defaults['updated_at'])) {
123
-        	$defaults['updated_at'] = api_convert_and_format_date($defaults['updated_at']);
123
+            $defaults['updated_at'] = api_convert_and_format_date($defaults['updated_at']);
124 124
         }
125 125
         $form->setDefaults($defaults);
126 126
 
127 127
         // Setting the rules
128 128
         $form->addRule('name', get_lang('ThisFieldIsRequired'), 'required');
129 129
 
130
-		return $form;
130
+        return $form;
131 131
     }
132 132
 
133 133
     public function get_count()
Please login to merge, or discard this patch.