Completed
Push — 1.11.x ( 60645e...aacf46 )
by José
76:05 queued 37:57
created
src/Chamilo/ThemeBundle/EventListener/NavbarMessageListDemoListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
 
17 17
     public function onListMessages(MessageListEvent $event) {
18 18
 
19
-        foreach($this->getMessages() as $msg) {
19
+        foreach ($this->getMessages() as $msg) {
20 20
             $event->addMessage($msg);
21 21
         }
22 22
     }
23 23
 
24 24
     protected function getMessages() {
25 25
         return array(
26
-            new MessageModel(new UserModel('Karl kettenkit'),'Dude! do something!', new \DateTime('-3 days')),
27
-            new MessageModel(new UserModel('Jack Trockendoc'),'This is some subject', new \DateTime('-10 month')),
26
+            new MessageModel(new UserModel('Karl kettenkit'), 'Dude! do something!', new \DateTime('-3 days')),
27
+            new MessageModel(new UserModel('Jack Trockendoc'), 'This is some subject', new \DateTime('-10 month')),
28 28
         );
29 29
     }
30 30
 
Please login to merge, or discard this patch.
Chamilo/ThemeBundle/EventListener/NavbarNotificationListDemoListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function onListNotifications(NotificationListEvent $event) {
18 18
 
19
-        foreach($this->getNotifications() as $notify){
19
+        foreach ($this->getNotifications() as $notify) {
20 20
             $event->addNotification($notify);
21 21
         }
22 22
 
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Admin/UserGroupAdmin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             ->add('users', 'sonata_type_collection', array(
29 29
                     'cascade_validation' => true,
30 30
                 ), array(
31
-                   // 'allow_delete' => true,
31
+                    // 'allow_delete' => true,
32 32
                     'by_reference' => false,
33 33
                     'edit'              => 'inline',
34 34
                     'inline'            => 'table',
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/DependencyInjection/ChamiloCoreExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $loader = new Loader\YamlFileLoader(
24 24
             $container,
25
-            new FileLocator(__DIR__ . '/../Resources/config')
25
+            new FileLocator(__DIR__.'/../Resources/config')
26 26
         );
27 27
 
28 28
         $loader->load('services.yml');
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/Skill.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,14 +222,14 @@
 block discarded – undo
222 222
                 return \Display::return_icon('badges-default.png', null, null, ICON_SIZE_BIG, null, true);
223 223
             }
224 224
 
225
-            return api_get_path(WEB_UPLOAD_PATH) . 'badges/' . sha1($this->name) . '-small.png';
225
+            return api_get_path(WEB_UPLOAD_PATH).'badges/'.sha1($this->name).'-small.png';
226 226
         }
227 227
 
228 228
         if (empty($this->icon)) {
229 229
             return \Display::return_icon('badges-default.png', null, null, ICON_SIZE_HUGE, null, true);
230 230
         }
231 231
 
232
-        return api_get_path(WEB_UPLOAD_PATH) . "badges/{$this->icon}";
232
+        return api_get_path(WEB_UPLOAD_PATH)."badges/{$this->icon}";
233 233
     }
234 234
 
235 235
     /**
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
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
 {
26 26
 
27 27
     /**
28
-    * @param string $keyword
28
+     * @param string $keyword
29 29
      *
30
-    * @return mixed
31
-    */
30
+     * @return mixed
31
+     */
32 32
     public function searchUserByKeyword($keyword)
33 33
     {
34 34
         $qb = $this->createQueryBuilder('a');
Please login to merge, or discard this patch.
main/admin/user_update_import.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
             // We are sure that the extra field exists.
216 216
             foreach ($extra_fields as $extras) {
217 217
                 if (isset($user[$extras[1]])) {
218
-                    $key 	= $extras[1];
219
-                    $value 	= $user[$extras[1]];
218
+                    $key = $extras[1];
219
+                    $value = $user[$extras[1]];
220 220
                     UserManager::update_extra_field_value($user_id, $key, $value);
221 221
                 }
222 222
             }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     global $current_tag;
254 254
     switch ($data) {
255 255
         case 'Contact':
256
-            $user = array ();
256
+            $user = array();
257 257
             break;
258 258
         default:
259 259
             $current_tag = $data;
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 
351 351
     if (in_array($ext_import_file, $allowed_file_mimetype)) {
352 352
         if (strcmp($file_type, 'csv') === 0 && $ext_import_file == $allowed_file_mimetype[0]) {
353
-            $users	= parse_csv_data($_FILES['import_file']['tmp_name']);
353
+            $users = parse_csv_data($_FILES['import_file']['tmp_name']);
354 354
             $errors = validate_data($users);
355 355
             $error_kind_file = false;
356 356
         } elseif (strcmp($file_type, 'xml') === 0 && $ext_import_file == $allowed_file_mimetype[1]) {
Please login to merge, or discard this patch.
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -454,7 +454,10 @@
 block discarded – undo
454 454
     <blockquote>
455 455
         <pre>
456 456
             <b>UserName</b>;LastName;FirstName;Email;NewUserName;Password;AuthSource;OfficialCode;PhoneNumber;Status;ExpiryDate;Active;Language;Courses;ClassId;
457
-            xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;user/teacher/drh;0000-00-00 00:00:00;0/1;xxx;<span style="color:red;"><?php if (count($list_reponse) > 0) echo implode(';', $list_reponse).';'; ?></span>xxx1|xxx2|xxx3;1;<br />
457
+            xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;xxx;user/teacher/drh;0000-00-00 00:00:00;0/1;xxx;<span style="color:red;"><?php if (count($list_reponse) > 0) {
458
+    echo implode(';', $list_reponse).';';
459
+}
460
+?></span>xxx1|xxx2|xxx3;1;<br />
458 461
         </pre>
459 462
     </blockquote>
460 463
 <p><?php
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
                     $user['error'] = get_lang('UserNameNotAvailable');
61 61
                     $errors[] = $user;
62 62
                 }
63
-             }
64
-          }
63
+                }
64
+            }
65 65
 
66 66
         // 3. Check status.
67 67
         if (isset($user['Status']) && !api_status_exists($user['Status'])) {
Please login to merge, or discard this patch.
main/social/groups.php 1 patch
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -19,24 +19,24 @@  discard block
 block discarded – undo
19 19
 $join_url = '';
20 20
 
21 21
 $this_section = SECTION_SOCIAL;
22
-$allowed_views = array('mygroups','newest','pop');
22
+$allowed_views = array('mygroups', 'newest', 'pop');
23 23
 $content = null;
24 24
 
25 25
 if (isset($_GET['view']) && in_array($_GET['view'], $allowed_views)) {
26 26
     if ($_GET['view'] == 'mygroups') {
27
-        $interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups'));
28
-        $interbreadcrumb[]= array ('url' =>'#','name' => get_lang('MyGroups'));
29
-    } else if ( $_GET['view'] == 'newest') {
30
-        $interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups'));
31
-        $interbreadcrumb[]= array ('url' =>'#','name' => get_lang('Newest'));
32
-    } else  {
33
-        $interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups'));
34
-        $interbreadcrumb[]= array ('url' =>'#','name' => get_lang('Popular'));
27
+        $interbreadcrumb[] = array('url' =>'groups.php', 'name' => get_lang('Groups'));
28
+        $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('MyGroups'));
29
+    } else if ($_GET['view'] == 'newest') {
30
+        $interbreadcrumb[] = array('url' =>'groups.php', 'name' => get_lang('Groups'));
31
+        $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('Newest'));
32
+    } else {
33
+        $interbreadcrumb[] = array('url' =>'groups.php', 'name' => get_lang('Groups'));
34
+        $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('Popular'));
35 35
     }
36 36
 } else {
37
-    $interbreadcrumb[]= array ('url' =>'groups.php','name' => get_lang('Groups'));
37
+    $interbreadcrumb[] = array('url' =>'groups.php', 'name' => get_lang('Groups'));
38 38
     if (!isset($_GET['id'])) {
39
-        $interbreadcrumb[]= array ('url' =>'#','name' => get_lang('GroupList'));
39
+        $interbreadcrumb[] = array('url' =>'#', 'name' => get_lang('GroupList'));
40 40
     }
41 41
 }
42 42
 
@@ -73,16 +73,16 @@  discard block
 block discarded – undo
73 73
         } elseif ($result['relation_type'] == GROUP_USER_PERMISSION_MODERATOR) {
74 74
             $name .= ' '.Display::return_icon('social_group_moderator.png', get_lang('Moderator'), array('style'=>'vertical-align:middle'));
75 75
         }
76
-        $url  = '<a href="group_view.php?id='.$id.'">' . $name . '</a>';
76
+        $url = '<a href="group_view.php?id='.$id.'">'.$name.'</a>';
77 77
 
78
-        $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0 , 1000));
79
-        if ($count_users_group == 1 ) {
78
+        $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0, 1000));
79
+        if ($count_users_group == 1) {
80 80
             $count_users_group = $count_users_group.' '.get_lang('Member');
81 81
         } else {
82 82
             $count_users_group = $count_users_group.' '.get_lang('Members');
83 83
         }
84 84
 
85
-        $picture = $usergroup->get_picture_group($result['id'], $result['picture'],80);
85
+        $picture = $usergroup->get_picture_group($result['id'], $result['picture'], 80);
86 86
         $result['picture'] = '<img class="social-groups-image" src="'.$picture['file'].'" />';
87 87
 
88 88
         $members = Display::returnFontAwesomeIcon('user').$count_users_group;
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
         $html .= '<div class="title-groups">';
95 95
         $html .= Display::tag('h5', $url);
96 96
         $html .= '</div>';
97
-        $html .= '<div class="members-groups">' . $members . '</div>';
97
+        $html .= '<div class="members-groups">'.$members.'</div>';
98 98
         if ($result['description'] != '') {
99
-            $html .= '<div class="description-groups">' . cut($result['description'],100,true) . '</div>';
99
+            $html .= '<div class="description-groups">'.cut($result['description'], 100, true).'</div>';
100 100
         } else {
101 101
             $html .= '';
102 102
         }
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
         $html .= '</div>';
105 105
 
106 106
         $grid_item_2 = $html;
107
-        $grid_my_groups[]= array($grid_item_2);
107
+        $grid_my_groups[] = array($grid_item_2);
108 108
     }
109 109
 }
110 110
 
111 111
 // Newest groups
112
-$results = $usergroup->get_groups_by_age(4,false);
112
+$results = $usergroup->get_groups_by_age(4, false);
113 113
 
114 114
 $grid_newest_groups = array();
115 115
 foreach ($results as $result) {
@@ -118,16 +118,16 @@  discard block
 block discarded – undo
118 118
     $id = $result['id'];
119 119
     $name = cut($result['name'], GROUP_TITLE_LENGTH, true);
120 120
 
121
-    $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0 , 1000));
122
-    if ($count_users_group == 1 ) {
121
+    $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0, 1000));
122
+    if ($count_users_group == 1) {
123 123
         $count_users_group = $count_users_group.' '.get_lang('Member');
124 124
     } else {
125 125
         $count_users_group = $count_users_group.' '.get_lang('Members');
126 126
     }
127 127
 
128
-    $url  = '<a href="group_view.php?id='.$id.'">' . $name . '</a>';
128
+    $url = '<a href="group_view.php?id='.$id.'">'.$name.'</a>';
129 129
 
130
-    $picture = $usergroup->get_picture_group($result['id'], $result['picture'],80);
130
+    $picture = $usergroup->get_picture_group($result['id'], $result['picture'], 80);
131 131
     $result['picture'] = '<img class="social-groups-image" src="'.$picture['file'].'" />';
132 132
     $members = Display::returnFontAwesomeIcon('user').$count_users_group;
133 133
 
@@ -139,15 +139,15 @@  discard block
 block discarded – undo
139 139
     $html .= '<div class="title-groups">';
140 140
     $html .= Display::tag('h5', $url);
141 141
     $html .= '</div>';
142
-    $html .= '<div class="members-groups">' . $members . '</div>';
142
+    $html .= '<div class="members-groups">'.$members.'</div>';
143 143
     if ($result['description'] != '') {
144
-        $html .= '<div class="description-groups">' . cut($result['description'],100,true) . '</div>';
144
+        $html .= '<div class="description-groups">'.cut($result['description'], 100, true).'</div>';
145 145
     } else {
146 146
         $html .= '';
147 147
     }
148 148
     //Avoiding my groups
149 149
 
150
-    if (!in_array($id,$my_group_list)) {
150
+    if (!in_array($id, $my_group_list)) {
151 151
         $html .= '<a class="btn" href="group_view.php?id='.$id.'&action=join&u='.api_get_user_id().'">'.get_lang('JoinGroup').'</a> ';
152 152
     }
153 153
 
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
 
158 158
     $grid_item_2 = $html;
159 159
 
160
-    $grid_newest_groups[]= array($grid_item_2);
160
+    $grid_newest_groups[] = array($grid_item_2);
161 161
 }
162 162
 
163 163
 // Pop groups
164
-$results = $usergroup->get_groups_by_popularity(4,false);
164
+$results = $usergroup->get_groups_by_popularity(4, false);
165 165
 $grid_pop_groups = array();
166 166
 
167 167
 if (is_array($results) && count($results) > 0) {
@@ -169,18 +169,18 @@  discard block
 block discarded – undo
169 169
         $result['name'] = Security::remove_XSS($result['name'], STUDENT, true);
170 170
         $result['description'] = Security::remove_XSS($result['description'], STUDENT, true);
171 171
         $id = $result['id'];
172
-        $name = cut($result['name'],GROUP_TITLE_LENGTH,true);
172
+        $name = cut($result['name'], GROUP_TITLE_LENGTH, true);
173 173
 
174
-        $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0 , 1000));
175
-        if ($count_users_group == 1 ) {
174
+        $count_users_group = count($usergroup->get_users_by_group($id, false, array(GROUP_USER_PERMISSION_ADMIN, GROUP_USER_PERMISSION_READER, GROUP_USER_PERMISSION_MODERATOR), 0, 1000));
175
+        if ($count_users_group == 1) {
176 176
             $count_users_group = $count_users_group.' '.get_lang('Member');
177 177
         } else {
178 178
             $count_users_group = $count_users_group.' '.get_lang('Members');
179 179
         }
180 180
 
181
-        $url  = '<a href="group_view.php?id='.$id.'">' . $name . '</a>';
181
+        $url = '<a href="group_view.php?id='.$id.'">'.$name.'</a>';
182 182
 
183
-        $picture = $usergroup->get_picture_group($result['id'], $result['picture'],80);
183
+        $picture = $usergroup->get_picture_group($result['id'], $result['picture'], 80);
184 184
         $result['picture'] = '<img class="social-groups-image" src="'.$picture['file'].'" />';
185 185
 
186 186
         $html = '<div class="row">';
@@ -191,15 +191,15 @@  discard block
 block discarded – undo
191 191
         $html .= '<div class="title-groups">';
192 192
         $html .= Display::tag('h5', $url);
193 193
         $html .= '</div>';
194
-        $html .= '<div class="members-groups">' . $members . '</div>';
194
+        $html .= '<div class="members-groups">'.$members.'</div>';
195 195
         if ($result['description'] != '') {
196
-            $html .= '<div class="description-groups">' . cut($result['description'],100,true) . '</div>';
196
+            $html .= '<div class="description-groups">'.cut($result['description'], 100, true).'</div>';
197 197
         } else {
198 198
             $html .= '';
199 199
         }
200 200
         //Avoiding my groups
201 201
 
202
-        if (!in_array($id,$my_group_list)) {
202
+        if (!in_array($id, $my_group_list)) {
203 203
             $html .= '<a class="btn" href="group_view.php?id='.$id.'&action=join&u='.api_get_user_id().'">'.get_lang('JoinGroup').'</a> ';
204 204
         }
205 205
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         $html .= '</div>';
209 209
 
210 210
         $grid_item_2 = $html;
211
-        $grid_pop_groups[]= array($grid_item_2);
211
+        $grid_pop_groups[] = array($grid_item_2);
212 212
     }
213 213
 }
214 214
 
@@ -222,36 +222,36 @@  discard block
 block discarded – undo
222 222
     switch ($view_group) {
223 223
         case 'mygroups':
224 224
             if (count($grid_my_groups) > 0) {
225
-                $my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true,false));
225
+                $my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true, false));
226 226
             }
227 227
             if (api_get_setting(
228 228
                     'social.allow_students_to_create_groups_in_social'
229 229
                 ) == 'true'
230 230
             ) {
231
-                $create_group_item =  '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
231
+                $create_group_item = '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
232 232
                     get_lang('CreateASocialGroup').'</a>';
233 233
             } else {
234
-                if (api_is_allowed_to_edit(null,true)) {
235
-                    $create_group_item =  '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
234
+                if (api_is_allowed_to_edit(null, true)) {
235
+                    $create_group_item = '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
236 236
                         get_lang('CreateASocialGroup').'</a>';
237 237
                 }
238 238
             }
239 239
             break;
240 240
         case 'newest':
241 241
             if (count($grid_newest_groups) > 0) {
242
-                $newest_content = Display::return_sortable_grid('newest', array(), $grid_newest_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,false));
242
+                $newest_content = Display::return_sortable_grid('newest', array(), $grid_newest_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true, false));
243 243
             }
244 244
             break;
245 245
         default:
246 246
             if (count($grid_pop_groups) > 0) {
247
-                $popular_content = Display::return_sortable_grid('popular', array(), $grid_pop_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,true,true));
247
+                $popular_content = Display::return_sortable_grid('popular', array(), $grid_pop_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true, true, true));
248 248
             }
249 249
             break;
250 250
     }
251 251
 } else {
252 252
     $my_group_content = null;
253 253
     if (count($grid_my_groups) > 0) {
254
-        $my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true,false));
254
+        $my_group_content = Display::return_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true, false));
255 255
     } else {
256 256
         $my_group_content = '<span class="muted">'.get_lang('GroupNone').'</span>';
257 257
     }
@@ -259,30 +259,30 @@  discard block
 block discarded – undo
259 259
             'social.allow_students_to_create_groups_in_social'
260 260
         ) == 'true'
261 261
     ) {
262
-        $create_group_item =  '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
262
+        $create_group_item = '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.
263 263
             get_lang('CreateASocialGroup').'</a>';
264 264
     } else {
265
-        if (api_is_allowed_to_edit(null,true)) {
266
-            $create_group_item =  '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
265
+        if (api_is_allowed_to_edit(null, true)) {
266
+            $create_group_item = '<a class="btn btn-default" href="'.api_get_path(WEB_PATH).'main/social/group_add.php">'.get_lang('CreateASocialGroup').'</a>';
267 267
         }
268 268
     }
269 269
     if (count($grid_newest_groups) > 0) {
270
-        $newest_content = Display::return_sortable_grid('mygroups', array(), $grid_newest_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,false));
270
+        $newest_content = Display::return_sortable_grid('mygroups', array(), $grid_newest_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true, false));
271 271
     } else {
272 272
         $newest_content = '<span class="muted">'.get_lang('GroupNone').'</span>';
273 273
     }
274 274
     if (count($grid_pop_groups) > 0) {
275
-        $popular_content = Display::return_sortable_grid('mygroups', array(), $grid_pop_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,true,true));
275
+        $popular_content = Display::return_sortable_grid('mygroups', array(), $grid_pop_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true, true, true));
276 276
     } else {
277 277
         $popular_content = '<span class="muted">'.get_lang('GroupNone').'</span>';
278 278
     }
279 279
 }
280 280
 
281 281
 if (!empty($create_group_item)) {
282
-    $social_right_content .=  Display::page_subheader($create_group_item);
282
+    $social_right_content .= Display::page_subheader($create_group_item);
283 283
 }
284 284
 $headers = array(get_lang('Newest'), get_lang('Popular'), get_lang('MyGroups'));
285
-$social_right_content .= Display::tabs($headers, array($newest_content, $popular_content, $my_group_content),'tab_browse');
285
+$social_right_content .= Display::tabs($headers, array($newest_content, $popular_content, $my_group_content), 'tab_browse');
286 286
 
287 287
 if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'show_message' && isset($_REQUEST['msg']) && $_REQUEST['msg'] == 'topic_deleted') {
288 288
     Display::return_message(get_lang('Deleted'), 'success');
Please login to merge, or discard this patch.
main/course_progress/thematic_plan.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,15 +47,15 @@
 block discarded – undo
47 47
         $form->addElement('hidden', 'description_type['.$id.']', $id);
48 48
         $form->addText('title['.$id.']', get_lang('Title'), false, array('size'=>'50'));
49 49
         $form->addHtmlEditor(
50
-           'description['.$id.']',
51
-           get_lang('Description'),
52
-           false,
53
-           false,
54
-           array(
55
-               'ToolbarStartExpanded' => 'false',
56
-               'ToolbarSet' => 'TrainingDescription',
57
-               'Height' => '150'
58
-           )
50
+            'description['.$id.']',
51
+            get_lang('Description'),
52
+            false,
53
+            false,
54
+            array(
55
+                'ToolbarStartExpanded' => 'false',
56
+                'ToolbarSet' => 'TrainingDescription',
57
+                'Height' => '150'
58
+            )
59 59
         );
60 60
 
61 61
         if (!empty($thematic_simple_list) && in_array($id, $thematic_simple_list)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 // actions menu
11 11
 $new_thematic_plan_data = array();
12 12
 if (!empty($thematic_plan_data))
13
-foreach($thematic_plan_data as $thematic_item) {
13
+foreach ($thematic_plan_data as $thematic_item) {
14 14
     $thematic_simple_list[] = $thematic_item['description_type'];
15 15
     $new_thematic_plan_data[$thematic_item['description_type']] = $thematic_item;
16 16
 }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     }
26 26
 }
27 27
 
28
-$i=1;
28
+$i = 1;
29 29
 
30 30
 echo Display::tag('h2', $thematic_data['title']);
31 31
 echo $thematic_data['content'];
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
             $thematic_plan = null;
68 68
         } else {
69 69
             $thematic_plan = null;
70
-            $default['title['.$id.']']       = $title;
71
-            $default['description['.$id.']']= '';
70
+            $default['title['.$id.']'] = $title;
71
+            $default['description['.$id.']'] = '';
72 72
         }
73 73
         $form->setDefaults($default);
74 74
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,10 @@
 block discarded – undo
9 9
 
10 10
 // actions menu
11 11
 $new_thematic_plan_data = array();
12
-if (!empty($thematic_plan_data))
13
-foreach($thematic_plan_data as $thematic_item) {
12
+if (!empty($thematic_plan_data)) {
13
+    foreach($thematic_plan_data as $thematic_item) {
14 14
     $thematic_simple_list[] = $thematic_item['description_type'];
15
+}
15 16
     $new_thematic_plan_data[$thematic_item['description_type']] = $thematic_item;
16 17
 }
17 18
 
Please login to merge, or discard this patch.