Test Setup Failed
Push — master ( e15afb...f173a6 )
by Angel Fernando Quiroz
30:31
created
src/Chamilo/CoreBundle/EventListener/PluginListener.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function onKernelController(FilterControllerEvent $event)
48 48
     {
49
-         $request = $event->getRequest();
49
+            $request = $event->getRequest();
50 50
         $controller = $request->get('_controller');
51 51
         // Only process legacy listener when loading legacy controller
52 52
         /*if ($controller != 'Chamilo\CoreBundle\Controller\LegacyController::classicAction') {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Security/Authorization/Voter/GroupVoter.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
         return $this->groupManager;
73 73
     }
74 74
 
75
-     /**
76
-     * @inheritdoc
77
-     */
75
+        /**
76
+         * @inheritdoc
77
+         */
78 78
     protected function supports($attribute, $subject)
79 79
     {
80 80
         $options = [
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
         return true;
97 97
     }
98 98
 
99
-     /**
100
-     * @inheritdoc
101
-     */
99
+        /**
100
+         * @inheritdoc
101
+         */
102 102
     protected function voteOnAttribute($attribute, $group, TokenInterface $token)
103 103
     {
104 104
         $user = $token->getUser();
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Security/Authorization/Voter/SessionVoter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
                 if ($session->hasUserInCourse($user, $course)) {
133 133
                     $user->addRole('ROLE_CURRENT_SESSION_COURSE_STUDENT');
134 134
 
135
-                     // Session duration per student.
135
+                        // Session duration per student.
136 136
                     if (!empty($session->getDuration())) {
137 137
                         $duration = $session->getDuration() * 24 * 60 * 60;
138 138
 
Please login to merge, or discard this patch.
plugin/vchamilo/lib/Virtual.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -186,11 +186,11 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-    * provides a side connection to a vchamilo database
190
-    * @param array $_configuration
189
+     * provides a side connection to a vchamilo database
190
+     * @param array $_configuration
191 191
      *
192
-    * @return \Doctrine\DBAL\Driver\Connection
193
-    */
192
+     * @return \Doctrine\DBAL\Driver\Connection
193
+     */
194 194
     public static function bootConnection(&$_configuration)
195 195
     {
196 196
         $dbParams = array(
@@ -298,10 +298,10 @@  discard block
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
-    * drop a vchamilo instance databases using the physical connection
302
-    * @param stdClass $params
303
-    * return an array of errors or false if ok
304
-    */
301
+     * drop a vchamilo instance databases using the physical connection
302
+     * @param stdClass $params
303
+     * return an array of errors or false if ok
304
+     */
305 305
     public static function dropDatabase($params)
306 306
     {
307 307
         $params = clone $params;
@@ -376,10 +376,10 @@  discard block
 block discarded – undo
376 376
     }
377 377
 
378 378
     /**
379
-    * get a proper SQLdump command
380
-    * @param object $vchamilodata the complete new host information
381
-    * @return string the shell command
382
-    */
379
+     * get a proper SQLdump command
380
+     * @param object $vchamilodata the complete new host information
381
+     * @return string the shell command
382
+     */
383 383
     public static function getDatabaseDumpCmd($vchamilodata)
384 384
     {
385 385
         $pgm = self::getConfig('vchamilo', 'mysql_cmd');
@@ -536,8 +536,8 @@  discard block
 block discarded – undo
536 536
     }
537 537
 
538 538
     /**
539
-    * read manifest values in vchamilo template.
540
-    */
539
+     * read manifest values in vchamilo template.
540
+     */
541 541
     public static function getVmanifest($version)
542 542
     {
543 543
         $templatewwwroot = '';
@@ -558,8 +558,8 @@  discard block
 block discarded – undo
558 558
     }
559 559
 
560 560
     /**
561
-    * make a fake vchamilo that represents the current host
562
-    */
561
+     * make a fake vchamilo that represents the current host
562
+     */
563 563
     public static function makeThis()
564 564
     {
565 565
         global $_configuration;
@@ -623,10 +623,10 @@  discard block
 block discarded – undo
623 623
     }
624 624
 
625 625
     /**
626
-    * this function set will map standard moodle API calls to chamilo
627
-    * internal primitives. This avoids too many changes to do in imported
628
-    * code
629
-    */
626
+     * this function set will map standard moodle API calls to chamilo
627
+     * internal primitives. This avoids too many changes to do in imported
628
+     * code
629
+     */
630 630
     public static function getConfig($module, $key, $isplugin = true)
631 631
     {
632 632
         if ($isplugin) {
Please login to merge, or discard this patch.
main/tracking/logins_details.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * 	@author Sebastien Piraux
8 8
  *
9 9
  * 	@package chamilo.tracking
10
-
11 10
  */
12 11
 /**
13 12
  * Code
Please login to merge, or discard this patch.
main/lp/openoffice_document.class.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         // Create the directory
54 54
         $result = $this->generate_lp_folder($_course, $this->file_name);
55 55
 
56
-         // Create the directory
56
+            // Create the directory
57 57
         $this->base_work_dir = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document';
58 58
         ///learning_path/ppt_dirname directory
59 59
         $this->created_dir = $result['dir'];
Please login to merge, or discard this patch.
main/admin/cli.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,15 +28,15 @@
 block discarded – undo
28 28
 switch ($_GET["cmd"]) {
29 29
     case "clear_stapi":
30 30
       echo "Are you sure you are willing to erease all storage api data (no backup)? <a href='cli.php?cmd=clear_stapi_confirm' >Yes</a>";
31
-      break;
31
+        break;
32 32
     case "clear_stapi_confirm":
33 33
       Database::query("delete from ".Database::get_main_table(TABLE_TRACK_STORED_VALUES));
34
-      Database::query("delete from ".Database::get_main_table(TABLE_TRACK_STORED_VALUES_STACK));
35
-      echo "Done";
36
-      break;
34
+        Database::query("delete from ".Database::get_main_table(TABLE_TRACK_STORED_VALUES_STACK));
35
+        echo "Done";
36
+        break;
37 37
     default:
38 38
       echo "UNKNOWN COMMAND";
39
-      break;
39
+        break;
40 40
 }
41 41
 /**
42 42
  * Footer
Please login to merge, or discard this patch.
main/admin/inactive_user_list.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 	@author Julio Montoya fixing lot of little details
6 6
 	@todo this script is not ready for a production use that's why
7 7
    I'm commenting the function delete_inactive_student
8
-
9
-*	@package chamilo.admin
8
+ *	@package chamilo.admin
10 9
 *	script pour effacer les user inactif depuis x temps
11 10
 */
12 11
 $cidReset = true;
Please login to merge, or discard this patch.
main/group/group_edit.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,9 +167,9 @@
 block discarded – undo
167 167
 // possible : number_groups_left > 0 and is group member
168 168
 $possible_users = array();
169 169
 foreach ($complete_user_list as $index => $user) {
170
-     if ($user['number_groups_left'] > 0 || in_array($user['user_id'], $selected_users)) {
170
+        if ($user['number_groups_left'] > 0 || in_array($user['user_id'], $selected_users)) {
171 171
         $possible_users[$user['user_id']] = api_get_person_name($user['firstname'], $user['lastname']).' ('.$user['username'].')';
172
-     }
172
+        }
173 173
 }
174 174
 
175 175
 $group_members_element = $form->addElement(
Please login to merge, or discard this patch.