Completed
Push — 1.10.x ( e39098...d9ba33 )
by Julito
34:46
created
certificates/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     case 'export':
16 16
         $hideExportLink = api_get_setting('hide_certificate_export_link');
17 17
         $hideExportLinkStudent = api_get_setting('hide_certificate_export_link_students');
18
-        if ($hideExportLink === 'true' || (api_is_student() && $hideExportLinkStudent === 'true') ) {
18
+        if ($hideExportLink === 'true' || (api_is_student() && $hideExportLinkStudent === 'true')) {
19 19
             api_not_allowed(true);
20 20
         }
21 21
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $pageFormat = $pdfParams['orientation'] == 'landscape' ? 'A4-L' : 'A4';
37 37
 
38 38
             $userInfo = api_get_user_info($certificate->user_id);
39
-            $pdfName = api_replace_dangerous_char(get_lang('Certificate') . ' ' . $userInfo['username']);
39
+            $pdfName = api_replace_dangerous_char(get_lang('Certificate').' '.$userInfo['username']);
40 40
 
41 41
             $pdf = new PDF($pageFormat, $pdfParams['orientation'], $pdfParams);
42 42
             $pdf->html_to_pdf($certificatePathList, $pdfName, null, false, false);
Please login to merge, or discard this patch.
src/Chamilo/CourseBundle/Entity/CLpCategory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 class CLpCategory
21 21
 {
22
-  /**
22
+    /**
23 23
      * @var integer
24 24
      *
25 25
      * @ORM\Column(name="iid", type="integer")
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/TinyMce/TinyMce.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     public function editorReplace()
49 49
     {
50
-        $toolbar  = new Toolbar\Basic($this->urlGenerator, $this->toolbarSet, $this->config, 'TinyMce');
50
+        $toolbar = new Toolbar\Basic($this->urlGenerator, $this->toolbarSet, $this->config, 'TinyMce');
51 51
         $toolbar->setLanguage($this->getLocale());
52 52
         $config = $toolbar->getConfig();
53 53
         $config['selector'] = "#".$this->name;
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/TinyMce/Toolbar/Basic.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
                 "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
23 23
                 "save table contextmenu directionality emoticons template paste textcolor"
24 24
             ),
25
-           'content_css'=> "css/content.css",
26
-           'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons",
25
+            'content_css'=> "css/content.css",
26
+            'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons",
27 27
             'file_browser_callback' => 'elFinderBrowser'
28 28
         );
29 29
 
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Driver/DropBoxDriver.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -633,8 +633,8 @@
 block discarded – undo
633 633
     }
634 634
 
635 635
     /**
636
-    * {@inheritdoc}
637
-    */
636
+     * {@inheritdoc}
637
+     */
638 638
     protected function _archive($dir, $files, $name, $arc) {
639 639
         return false;
640 640
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
      * @return resource|false
465 465
      * @author Dmitry (dio) Levashov
466 466
      **/
467
-    protected function _fopen($path, $mode='rb') {
467
+    protected function _fopen($path, $mode = 'rb') {
468 468
         $fp = $this->tmbPath
469 469
             ? @fopen($this->tmpname($path), 'w+')
470 470
             : @tmpfile();
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
      * @return bool
492 492
      * @author Dmitry (dio) Levashov
493 493
      **/
494
-    protected function _fclose($fp, $path='') {
494
+    protected function _fclose($fp, $path = '') {
495 495
         @fclose($fp);
496 496
         if ($path) {
497 497
             @unlink($this->tmpname($path));
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Driver/HomeDriver.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
                 'driver' => 'HomeDriver',
32 32
                 'alias' => get_lang('Portal'),
33 33
                 'path' => $home,
34
-                'URL' => api_get_path(WEB_PATH) . 'home',
34
+                'URL' => api_get_path(WEB_PATH).'home',
35 35
                 'accessControl' => array($this, 'access'),
36 36
             );
37 37
         }
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Driver/PersonalDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
                 mkdir($dir);
26 26
             }
27 27
 
28
-            if (!is_dir($dir . 'my_files')) {
29
-                mkdir($dir . 'my_files');
28
+            if (!is_dir($dir.'my_files')) {
29
+                mkdir($dir.'my_files');
30 30
             }
31 31
         }
32 32
     }
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Driver/CourseDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         if (!empty($courseInfo)) {
28 28
 
29 29
             $coursePath = api_get_path(SYS_COURSE_PATH);
30
-            $courseDir = $courseInfo['directory'] . '/document';
31
-            $baseDir = $coursePath . $courseDir;
30
+            $courseDir = $courseInfo['directory'].'/document';
31
+            $baseDir = $coursePath.$courseDir;
32 32
 
33 33
             // Creates shared folder
34 34
 
35
-            if (!file_exists($baseDir . '/shared_folder')) {
35
+            if (!file_exists($baseDir.'/shared_folder')) {
36 36
                 $title = get_lang('UserFolders');
37 37
                 $folderName = '/shared_folder';
38 38
                 //$groupId = 0;
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
             }
52 52
 
53 53
             // Creates user-course folder
54
-            if (!file_exists($baseDir . '/shared_folder/sf_user_' . $userId)) {
54
+            if (!file_exists($baseDir.'/shared_folder/sf_user_'.$userId)) {
55 55
                 $title = $userInfo['complete_name'];
56
-                $folderName = '/shared_folder/sf_user_' . $userId;
56
+                $folderName = '/shared_folder/sf_user_'.$userId;
57 57
                 $visibility = 1;
58 58
                 create_unexisting_directory(
59 59
                     $courseInfo,
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Finder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $this->time  = $this->utime();
32 32
         $this->debug = (isset($opts['debug']) && $opts['debug'] ? true : false);
33 33
         $this->timeout = (isset($opts['timeout']) ? $opts['timeout'] : 0);
34
-        $this->netVolumesSessionKey = !empty($opts['netVolumesSessionKey'])? $opts['netVolumesSessionKey'] : 'elFinderNetVolumes';
34
+        $this->netVolumesSessionKey = !empty($opts['netVolumesSessionKey']) ? $opts['netVolumesSessionKey'] : 'elFinderNetVolumes';
35 35
         $this->callbackWindowURL = (isset($opts['callbackWindowURL']) ? $opts['callbackWindowURL'] : '');
36 36
 
37 37
         // setlocale and global locale regists to elFinder::locale
@@ -46,20 +46,20 @@  discard block
 block discarded – undo
46 46
             $_reqCmd = isset($_req['cmd']) ? $_req['cmd'] : '';
47 47
             foreach ($opts['bind'] as $cmd => $handlers) {
48 48
                 $doRegist = (strpos($cmd, '*') !== false);
49
-                if (! $doRegist) {
49
+                if (!$doRegist) {
50 50
                     $_getcmd = create_function('$cmd', 'list($ret) = explode(\'.\', $cmd);return trim($ret);');
51 51
                     $doRegist = ($_reqCmd && in_array($_reqCmd, array_map($_getcmd, explode(' ', $cmd))));
52 52
                 }
53 53
                 if ($doRegist) {
54
-                    if (! is_array($handlers) || is_object($handlers[0])) {
54
+                    if (!is_array($handlers) || is_object($handlers[0])) {
55 55
                         $handlers = array($handlers);
56 56
                     }
57
-                    foreach($handlers as $handler) {
57
+                    foreach ($handlers as $handler) {
58 58
                         if ($handler) {
59 59
                             if (is_string($handler) && strpos($handler, '.')) {
60 60
                                 list($_domain, $_name, $_method) = array_pad(explode('.', $handler), 3, '');
61 61
                                 if (strcasecmp($_domain, 'plugin') === 0) {
62
-                                    if ($plugin = $this->getPluginInstance($_name, isset($opts['plugin'][$_name])? $opts['plugin'][$_name] : array())
62
+                                    if ($plugin = $this->getPluginInstance($_name, isset($opts['plugin'][$_name]) ? $opts['plugin'][$_name] : array())
63 63
                                         and method_exists($plugin, $_method)) {
64 64
                                         $this->bind($cmd, array($plugin, $_method));
65 65
                                     }
Please login to merge, or discard this patch.