Completed
Push — master ( f173a6...4a27fe )
by Angel Fernando Quiroz
37:49 queued 04:39
created
src/Chamilo/InstallerBundle/Process/Step/AbstractStep.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         error_log($command);
85 85
         error_log(print_r($params, 1));
86 86
         // Add error_log in vendor/symfony/symfony/src/Symfony/Component/Console/Application.php run() function
87
-        $mem = (int)memory_get_usage() / (1024 * 1024);
87
+        $mem = (int) memory_get_usage() / (1024 * 1024);
88 88
         $time = time();
89 89
 
90 90
         $result = null;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 'Command "%s" executed in %u second(s), memory usage: %.2fMb',
103 103
                 $command,
104 104
                 time() - $time,
105
-                (int)memory_get_usage() / (1024 * 1024) - $mem
105
+                (int) memory_get_usage() / (1024 * 1024) - $mem
106 106
             )
107 107
         );
108 108
         $output->writeln('');
Please login to merge, or discard this patch.
src/Chamilo/InstallerBundle/Form/Type/Configuration/MailerType.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     {
104 104
         $resolver->setDefaults(
105 105
             array(
106
-                'validation_groups' => function (FormInterface $form) {
106
+                'validation_groups' => function(FormInterface $form) {
107 107
                     $data = $form->getData();
108 108
 
109 109
                     return 'smtp' == $data['chamilo_installer_mailer_transport']
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@
 block discarded – undo
103 103
         ;
104 104
     }
105 105
 
106
-     /**
107
-     * {@inheritdoc}
108
-     */
106
+        /**
107
+         * {@inheritdoc}
108
+         */
109 109
     public function configureOptions(OptionsResolver $resolver)
110 110
     {
111 111
         $resolver->setDefaults(
Please login to merge, or discard this patch.
src/Chamilo/InstallerBundle/Requirement/Requirement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
         $help = null
30 30
     ) {
31 31
         $this->label = $label;
32
-        $this->fulfilled = (Boolean)$fulfilled;
32
+        $this->fulfilled = (Boolean) $fulfilled;
33 33
         $this->expected = $expected;
34 34
         $this->actual = $actual;
35
-        $this->required = (Boolean)$required;
35
+        $this->required = (Boolean) $required;
36 36
         $this->help = $help;
37 37
     }
38 38
 
Please login to merge, or discard this patch.
src/Chamilo/InstallerBundle/Requirement/ExtensionsRequirements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'requirements'
34 34
         );
35 35
 
36
-        $pcreVersion = defined('PCRE_VERSION') ? (float)PCRE_VERSION : null;
36
+        $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null;
37 37
 
38 38
         $this
39 39
             ->add(
Please login to merge, or discard this patch.
src/Chamilo/UserBundle/Form/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         // Update Author id
72 72
         $builder->addEventListener(
73 73
             FormEvents::POST_SUBMIT,
74
-            function (FormEvent $event) use ($currentUser) {
74
+            function(FormEvent $event) use ($currentUser) {
75 75
                 /** @var User $user */
76 76
                 $user = $event->getData();
77 77
                 $extraFields = $user->getExtrafields();
Please login to merge, or discard this patch.
app/ChamiloRequirements.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
         $this->addPhpIniRequirement(
169 169
             'memory_limit',
170
-            function ($cfgValue) use ($mem) {
170
+            function($cfgValue) use ($mem) {
171 171
                 return $mem >= 256 * 1024 * 1024 || -1 == $mem;
172 172
             },
173 173
             false,
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
     {
302 302
         return array_filter(
303 303
             $this->getRequirements(),
304
-            function ($requirement) {
304
+            function($requirement) {
305 305
                 return !($requirement instanceof PhpIniRequirement)
306 306
                 && !($requirement instanceof ChamiloRequirement)
307 307
                 && !($requirement instanceof CliRequirement);
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     {
319 319
         return array_filter(
320 320
             $this->getRequirements(),
321
-            function ($requirement) {
321
+            function($requirement) {
322 322
                 return $requirement instanceof PhpIniRequirement;
323 323
             }
324 324
         );
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         return array_filter(
335 335
             $this->getRequirements(),
336
-            function ($requirement) {
336
+            function($requirement) {
337 337
                 return $requirement instanceof ChamiloRequirement;
338 338
             }
339 339
         );
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
     {
347 347
         return array_filter(
348 348
             $this->getRequirements(),
349
-            function ($requirement) {
349
+            function($requirement) {
350 350
                 return $requirement instanceof CliRequirement;
351 351
             }
352 352
         );
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         preg_match('/([\-0-9]+)[\s]*([a-z]*)$/i', trim($val), $matches);
366 366
 
367 367
         if (isset($matches[1])) {
368
-            $val = (int)$matches[1];
368
+            $val = (int) $matches[1];
369 369
         }
370 370
 
371 371
         switch (strtolower($matches[2])) {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
             // no break
384 384
         }
385 385
 
386
-        return (float)$val;
386
+        return (float) $val;
387 387
     }
388 388
 
389 389
     /**
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Controller/Admin/PluginsController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @Security("has_role('ROLE_ADMIN')")
24 24
      * @Route("/plugins")
25 25
      *
26
-     * @return array
26
+     * @return Response
27 27
      */
28 28
     public function pluginsAction()
29 29
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @Security("has_role('ROLE_ADMIN')")
43 43
      * @Route("/plugins/add")
44 44
      *
45
-     * @return array
45
+     * @return null|Response
46 46
      */
47 47
     public function pluginsAddAction()
48 48
     {
Please login to merge, or discard this 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/Admin/SettingsController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @Security("has_role('ROLE_ADMIN')")
24 24
      * @Route("/settings", name="admin_settings")
25 25
      *
26
-     * @return array
26
+     * @return Response
27 27
      */
28 28
     public function indexAction()
29 29
     {
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.