Completed
Push — master ( f173a6...4a27fe )
by Angel Fernando Quiroz
37:49 queued 04:39
created
main/document/document_slideshow.inc.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
  */
28 28
 // Resetting the images of the slideshow = destroying the slideshow
29 29
 if (isset($_GET['action']) && $_GET['action'] == 'exit_slideshow') {
30
-	$_SESSION['image_files_only'] = null;
31
-	unset($image_files_only);
30
+    $_SESSION['image_files_only'] = null;
31
+    unset($image_files_only);
32 32
 }
33 33
 
34 34
 // We check if there are images in this folder by searching the extensions for .jpg, .gif, .png
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 $array_to_search = !empty($documentAndFolders) && is_array($documentAndFolders) ? $documentAndFolders : array();
38 38
 
39 39
 if (count($array_to_search) > 0) {
40
-	while (list($key) = each($array_to_search)) {
41
-		$all_files[] = basename($array_to_search[$key]['path']);
42
-		//echo basename($array_to_search[$key]['path']).'<br />';
43
-	}
40
+    while (list($key) = each($array_to_search)) {
41
+        $all_files[] = basename($array_to_search[$key]['path']);
42
+        //echo basename($array_to_search[$key]['path']).'<br />';
43
+    }
44 44
 }
45 45
 
46 46
 // Always show gallery.
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 
61 61
 $tablename_column = isset($_GET['tablename_column']) ? Security::remove_XSS($_GET['tablename_column']) : 0;
62 62
 if ($tablename_column == 0) {
63
-	$tablename_column = 1;
63
+    $tablename_column = 1;
64 64
 } else {
65
-	$tablename_column = intval($tablename_column) - 1;
65
+    $tablename_column = intval($tablename_column) - 1;
66 66
 }
67 67
 
68 68
 $image_files_only = sort_files($array_to_search);
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
         $final_array[] = $file_array[1];
97 97
     }
98 98
 
99
-	return $final_array;
99
+    return $final_array;
100 100
 }
101 101
 
102 102
 function sort_table($a, $b) {
103
-	global $tablename_column;
104
-	return strnatcmp($a[$tablename_column], $b[$tablename_column]);
103
+    global $tablename_column;
104
+    return strnatcmp($a[$tablename_column], $b[$tablename_column]);
105 105
 }
106 106
 
107 107
 function rsort_table($a, $b) {
108
-	global $tablename_column;
109
-	return strnatcmp($b[$tablename_column], $a[$tablename_column]);
108
+    global $tablename_column;
109
+    return strnatcmp($b[$tablename_column], $a[$tablename_column]);
110 110
 }
Please login to merge, or discard this patch.
main/ticket/categories.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         );
174 174
     }
175 175
 
176
-	return $result;
176
+    return $result;
177 177
 }
178 178
 
179 179
 $table->set_header(0, '', false);
Please login to merge, or discard this patch.
main/inc/lib/chat.lib.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-    * Set user chat status
54
-    * @param int 0 if disconnected, 1 if connected
55
-    * @param integer $status
53
+     * Set user chat status
54
+     * @param int 0 if disconnected, 1 if connected
55
+     * @param integer $status
56 56
      *
57
-    * @return void
58
-    */
57
+     * @return void
58
+     */
59 59
     public function setUserStatus($status)
60 60
     {
61 61
         UserManager::update_extra_field_value(api_get_user_id(), 'user_chat_status', $status);
@@ -156,10 +156,10 @@  discard block
 block discarded – undo
156 156
     }
157 157
 
158 158
     /**
159
-    * Returns an array of messages inside a chat session with a specific user
160
-    * @param int The ID of the user with whom the current user is chatting
161
-    * @return array Messages list
162
-    */
159
+     * Returns an array of messages inside a chat session with a specific user
160
+     * @param int The ID of the user with whom the current user is chatting
161
+     * @return array Messages list
162
+     */
163 163
     public function box_session($user_id)
164 164
     {
165 165
         $items = array();
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
             }
307 307
         }
308 308
 
309
-         return false;
309
+            return false;
310 310
     }
311 311
 
312 312
     /**
Please login to merge, or discard this patch.
main/inc/lib/document.lib.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -5111,7 +5111,6 @@
 block discarded – undo
5111 5111
      * @param string	The current folder (path inside of the "document" directory, including the prefix "/")
5112 5112
      * @param string	Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root)
5113 5113
      * @param	boolean	Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form)
5114
-
5115 5114
      * @return string html form
5116 5115
      */
5117 5116
     public static function build_directory_selector(
Please login to merge, or discard this patch.
main/auth/profile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@
 block discarded – undo
628 628
 
629 629
     foreach ($user_data as $key => $value) {
630 630
         if (substr($key, 0, 6) === 'extra_') { //an extra field
631
-           continue;
631
+            continue;
632 632
         } elseif (strpos($key, 'remove_extra_') !== false) {
633 633
         } else {
634 634
             if (in_array($key, $available_values_to_modify)) {
Please login to merge, or discard this patch.
main/glossary/index.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
             if (!empty($glossary_data['update_date'])) {
134 134
                 $glossary_data['update_date'] = Display::dateToStringAgoAndLongDate($glossary_data['update_date']);
135 135
             } else {
136
-                 $glossary_data['update_date'] = '';
136
+                    $glossary_data['update_date'] = '';
137 137
             }
138 138
 
139 139
             $form->addLabel(get_lang('CreationDate'), $glossary_data['insert_date']);
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Repository/UserRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
26 26
 class UserRepository extends EntityRepository
27 27
 {
28 28
     /**
29
-    * @param string $keyword
29
+     * @param string $keyword
30 30
      *
31
-    * @return mixed
32
-    */
31
+     * @return mixed
32
+     */
33 33
     public function searchUserByKeyword($keyword)
34 34
     {
35 35
         $qb = $this->createQueryBuilder('a');
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Entity/User.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1891,11 +1891,11 @@  discard block
 block discarded – undo
1891 1891
         return $this->locale;
1892 1892
     }
1893 1893
 
1894
-     /**
1895
-     * @param string $timezone
1896
-     *
1897
-     * @return User
1898
-     */
1894
+        /**
1895
+         * @param string $timezone
1896
+         *
1897
+         * @return User
1898
+         */
1899 1899
     public function setTimezone($timezone)
1900 1900
     {
1901 1901
         $this->timezone = $timezone;
@@ -2073,11 +2073,11 @@  discard block
 block discarded – undo
2073 2073
         }
2074 2074
     }
2075 2075
 
2076
-      /**
2077
-     * Returns the user roles
2078
-     *
2079
-     * @return array The roles
2080
-     */
2076
+        /**
2077
+         * Returns the user roles
2078
+         *
2079
+         * @return array The roles
2080
+         */
2081 2081
     public function getRoles()
2082 2082
     {
2083 2083
         $roles = $this->roles;
Please login to merge, or discard this patch.
main/ticket/status.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
         );
174 174
     }
175 175
 
176
-	return $result;
176
+    return $result;
177 177
 }
178 178
 
179 179
 $table->set_header(0, '', false);
Please login to merge, or discard this patch.