Test Setup Failed
Push — master ( e15afb...f173a6 )
by Angel Fernando Quiroz
30:31
created
src/Chamilo/CoreBundle/Framework/PageController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         if (!isset($user_selected_language)) {
218 218
             $user_selected_language = $platformLanguage;
219 219
         }
220
-        $home_menu = @(string)file_get_contents($sys_path.$home.'home_menu_'.$user_selected_language.'.html');
220
+        $home_menu = @(string) file_get_contents($sys_path.$home.'home_menu_'.$user_selected_language.'.html');
221 221
         if (!empty($home_menu)) {
222 222
             $home_menu_content = api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu)));
223 223
             $this->show_right_block(
@@ -265,9 +265,9 @@  discard block
 block discarded – undo
265 265
         $home                   = api_get_home_path();
266 266
 
267 267
         // Notice
268
-        $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice_'.$user_selected_language.'.html');
268
+        $home_notice = @(string) file_get_contents($sys_path.$home.'home_notice_'.$user_selected_language.'.html');
269 269
         if (empty($home_notice)) {
270
-            $home_notice = @(string)file_get_contents($sys_path.$home.'home_notice.html');
270
+            $home_notice = @(string) file_get_contents($sys_path.$home.'home_notice.html');
271 271
         }
272 272
 
273 273
         if (!empty($home_notice)) {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         $home_top_temp = null;
376 376
 
377 377
         if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) {
378
-            $open = @(string)file_get_contents(api_get_path(SYS_PATH).$home.$_GET['include']);
378
+            $open = @(string) file_get_contents(api_get_path(SYS_PATH).$home.$_GET['include']);
379 379
             $html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
380 380
         } else {
381 381
             $user_selected_language = api_get_user_language();
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
         $loadDirs = api_get_setting('document.show_documents_preview') == 'true' ? true : false;
869 869
         $start    = ($page - 1) * $this->maxPerPage;
870 870
 
871
-        $nbResults = (int)CourseManager::displayPersonalCourseCategories($user_id, $filter, $loadDirs, true);
871
+        $nbResults = (int) CourseManager::displayPersonalCourseCategories($user_id, $filter, $loadDirs, true);
872 872
 
873 873
         $html = CourseManager::displayPersonalCourseCategories(
874 874
             $user_id,
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
 
1229 1229
         if ($loadHistory) {
1230 1230
             // Load sessions in category in *history*.
1231
-            $nbResults = (int)UserManager::get_sessions_by_category(
1231
+            $nbResults = (int) UserManager::get_sessions_by_category(
1232 1232
                 $user_id,
1233 1233
                 true,
1234 1234
                 true,
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
             );
1250 1250
         } else {
1251 1251
             // Load sessions in category.
1252
-            $nbResults = (int)UserManager::get_sessions_by_category(
1252
+            $nbResults = (int) UserManager::get_sessions_by_category(
1253 1253
                 $user_id,
1254 1254
                 false,
1255 1255
                 true,
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Controller/Admin/PluginsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
             if (is_file($file)) {
56 56
                 $pluginInfo = require $file;
57
-                var_dump($pluginInfo);exit;
57
+                var_dump($pluginInfo); exit;
58 58
                 $allPluginsList[] = $pluginInfo;
59 59
             }
60 60
         }
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Controller/UserPortalController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
                     get_lang('PickACourseAsATemplateForThisNewCourse'),
229 229
                 ],
230 230
                 null,
231
-                ['url' => api_get_path(WEB_AJAX_PATH) . 'course.ajax.php?a=search_course']
231
+                ['url' => api_get_path(WEB_AJAX_PATH).'course.ajax.php?a=search_course']
232 232
             );
233 233
         }
234 234
 
Please login to merge, or discard this patch.
main/ticket/course_user_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
 $courseSelect = Display::select('course_id', $arrCourseList, 0, array(), false);
39 39
 $courseControl = Display::div($courseSelect, array('class' => 'controls'));
40 40
 
41
-$userDiv = Display::div($userLabel . " " . $userControl, array('class' => 'control-group'));
42
-$courseDiv = Display::div($courseLabel . " " . $courseControl, array('class' => 'control-group'));
41
+$userDiv = Display::div($userLabel." ".$userControl, array('class' => 'control-group'));
42
+$courseDiv = Display::div($courseLabel." ".$courseControl, array('class' => 'control-group'));
43 43
 echo $userDiv;
44 44
 echo $courseDiv;
45 45
 
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/EventListener/LogoutSuccessHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 LIMIT 0,1";
63 63
         $row = Database::query($sql);
64 64
         $loginId = null;
65
-        if (Database::num_rows($row)>0) {
65
+        if (Database::num_rows($row) > 0) {
66 66
             $loginId = Database::result($row, 0, "login_id");
67 67
         }
68 68
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $online_table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ONLINE);
79 79
 
80
-        $query = "DELETE FROM " . $online_table . " WHERE login_user_id = $userId";
80
+        $query = "DELETE FROM ".$online_table." WHERE login_user_id = $userId";
81 81
         Database::query($query);
82 82
 
83 83
         /*require_once api_get_path(SYS_PATH) . 'main/chat/chat_functions.lib.php';
Please login to merge, or discard this patch.
main/chat/video.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 $idUserLocal = api_get_user_id();
35 35
 $userLocal = api_get_user_info($idUserLocal, true);
36 36
 $htmlHeadXtra[] = '<script type="text/javascript" src="'
37
-    . api_get_path(WEB_PATH) . 'web/assets/simpleWebRTC/latest.js'
38
-    . '"></script>' . "\n";
37
+    . api_get_path(WEB_PATH).'web/assets/simpleWebRTC/latest.js'
38
+    . '"></script>'."\n";
39 39
 
40 40
 $template = new Template();
41 41
 $template->assign('room_name', $chatVideo->getRoomName());
Please login to merge, or discard this patch.
src/Chamilo/SettingsBundle/Manager/SettingsManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             'Institution' => 'Platform',
142 142
             'InstitutionUrl' => 'Platform',
143 143
             'siteName' => 'Platform',
144
-            'emailAdministrator' => 'admin',//'emailAdministrator' => 'Platform',
144
+            'emailAdministrator' => 'admin', //'emailAdministrator' => 'Platform',
145 145
             'administratorSurname' => 'admin',
146 146
             'administratorTelephone' => 'admin',
147 147
             'administratorName' => 'admin',
@@ -252,11 +252,11 @@  discard block
 block discarded – undo
252 252
             'allow_send_message_to_all_platform_users' => 'Tools',
253 253
             'message_max_upload_filesize' => 'Tools',
254 254
             'use_users_timezone' => 'profile', //'use_users_timezone' => 'Timezones',
255
-            'timezone_value' => 'platform',//'timezone_value' => 'Timezones',
255
+            'timezone_value' => 'platform', //'timezone_value' => 'Timezones',
256 256
             'allow_user_course_subscription_by_course_admin' => 'Security',
257 257
             'show_link_bug_notification' => 'Platform',
258 258
             'show_link_ticket_notification' => 'Platform',
259
-            'course_validation' => 'course',//'course_validation' => 'Platform',
259
+            'course_validation' => 'course', //'course_validation' => 'Platform',
260 260
             'course_validation_terms_and_conditions_url' => 'Platform',
261 261
             'sso_authentication' => 'Security',
262 262
             'sso_authentication_domain' => 'Security',
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Security/FOSUBUserProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         //if user exists - go with the HWIOAuth way
62 62
         $user = parent::loadUserByOAuthUserResponse($response);
63 63
         $serviceName = $response->getResourceOwner()->getName();
64
-        $setter = 'set' . ucfirst($serviceName) . 'AccessToken';
64
+        $setter = 'set'.ucfirst($serviceName).'AccessToken';
65 65
         //update access token
66 66
         $user->$setter($response->getAccessToken());
67 67
         return $user;
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Entity/Manager/UserManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function findUserByOfficialCode($code)
33 33
     {
34
-        $criteria = ['officialCode' => $code ];
34
+        $criteria = ['officialCode' => $code];
35 35
         return $this->findUserBy($criteria);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.