Completed
Push — 1.10.x ( e39098...d9ba33 )
by Julito
34:46
created
Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/UniqueAnswerImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     {
19 19
         $config['toolbarGroups'] = array(
20 20
             '/',
21
-            array('name' => 'basicstyles',    'groups' =>array('basicstyles', 'cleanup', )),
22
-            array('name' => 'paragraph',    'groups' =>array('list', 'indent', 'blocks', 'align' )),
21
+            array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup',)),
22
+            array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')),
23 23
             array('name' => 'links'),
24 24
             array('name' => 'insert'),
25 25
             '/',
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Minimal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             ],
35 35
             [
36 36
                 'name' => 'links',
37
-                'items' => [ 'Link', 'Unlink', 'Anchor']
37
+                'items' => ['Link', 'Unlink', 'Anchor']
38 38
             ]
39 39
         ];
40 40
 
Please login to merge, or discard this patch.
CoreBundle/Component/Editor/CkEditor/Toolbar/ProjectCommentStudent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         return [
90 90
             ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'],
91 91
             ['Undo', 'Redo'],
92
-            ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table',  'Asciimath'],
92
+            ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
93 93
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
94 94
             ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
95 95
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor'],
Please login to merge, or discard this patch.
CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
     public function getConfig()
17 17
     {
18 18
         $config['toolbarGroups'] = array(
19
-            array('name' => 'document',  'groups' =>array('document', 'doctools')),
20
-            array('name' => 'clipboard',    'groups' =>array('clipboard', 'undo')),
21
-            array('name' => 'editing',    'groups' =>array('clipboard', 'undo')),
19
+            array('name' => 'document', 'groups' =>array('document', 'doctools')),
20
+            array('name' => 'clipboard', 'groups' =>array('clipboard', 'undo')),
21
+            array('name' => 'editing', 'groups' =>array('clipboard', 'undo')),
22 22
             //array('name' => 'forms',    'groups' =>array('clipboard', 'undo', )),
23 23
             '/',
24
-            array('name' => 'basicstyles',    'groups' =>array('basicstyles', 'cleanup')),
25
-            array('name' => 'paragraph',    'groups' =>array('list', 'indent', 'blocks', 'align')),
24
+            array('name' => 'basicstyles', 'groups' =>array('basicstyles', 'cleanup')),
25
+            array('name' => 'paragraph', 'groups' =>array('list', 'indent', 'blocks', 'align')),
26 26
             array('name' => 'links'),
27 27
             array('name' => 'insert'),
28 28
             '/',
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Wiki.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
                 '-',
57 57
                 'Find'
58 58
             ],
59
-            ['Wikilink','Link','Unlink','Anchor'],
60
-            ['Image','Video','Flash','Oembed','Youtube','Audio','Asciimath'],
61
-            ['Table','HorizontalRule','Smiley','SpecialChar','leaflet'],
62
-            ['Format','Font','FontSize'],
63
-            ['Bold','Italic','Underline'],
59
+            ['Wikilink', 'Link', 'Unlink', 'Anchor'],
60
+            ['Image', 'Video', 'Flash', 'Oembed', 'Youtube', 'Audio', 'Asciimath'],
61
+            ['Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'leaflet'],
62
+            ['Format', 'Font', 'FontSize'],
63
+            ['Bold', 'Italic', 'Underline'],
64 64
             [
65 65
                 'Subscript',
66 66
                 'Superscript',
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         return [
95 95
             ['Save', 'NewPage', 'Templates', '-', 'PasteText'],
96 96
             ['Undo', 'Redo'],
97
-            ['Wikilink', 'Link', 'Image', 'Video', 'Flash', 'Audio', 'Table',  'Asciimath', 'Asciisvg'],
97
+            ['Wikilink', 'Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
98 98
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
99 99
             ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
100 100
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
         return [[
146 146
             'title' => get_lang('EmptyTemplate'),
147 147
             'description' => null,
148
-            'image' => api_get_path(WEB_APP_PATH) . 'home/default_platform_document/template_thumb/empty.gif',
148
+            'image' => api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/empty.gif',
149 149
             'html' => '
150 150
                 <!DOCYTPE html>
151 151
                 <html>
152 152
                     <head>
153
-                        <meta charset="' . api_get_system_encoding() . '" />
153
+                        <meta charset="' . api_get_system_encoding().'" />
154 154
                     </head>
155
-                    <body  dir="' . api_get_text_direction() . '">
155
+                    <body  dir="' . api_get_text_direction().'">
156 156
                         <p>
157 157
                             <br/>
158 158
                         </p>
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $search = array('{CSS}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}');
176 176
         $replace = array(
177 177
             '',
178
-            api_get_path(REL_CODE_PATH) . 'img/',
178
+            api_get_path(REL_CODE_PATH).'img/',
179 179
             api_get_path(REL_PATH),
180 180
             api_get_path(REL_DEFAULT_COURSE_DOCUMENT_PATH),
181 181
             api_get_path(REL_DEFAULT_COURSE_DOCUMENT_PATH)
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         foreach ($systemTemplates as $template) {
187 187
             $image = $template->getImage();
188 188
             $image = !empty($image) ? $image : 'empty.gif';
189
-            $image = api_get_path(WEB_APP_PATH) . 'home/default_platform_document/template_thumb/' . $image;
189
+            $image = api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/'.$image;
190 190
 
191 191
             /*$image = $this->urlGenerator->generate(
192 192
                 'get_document_template_action',
@@ -238,12 +238,12 @@  discard block
 block discarded – undo
238 238
             $templateItem['image'] = api_get_path(WEB_APP_PATH)
239 239
                 . 'home/default_platform_document/template_thumb/noimage.gif';
240 240
             $templateItem['html'] = file_get_contents(api_get_path(SYS_COURSE_PATH)
241
-                . $courseDirectory . '/document' . $templateData['path']);
241
+                . $courseDirectory.'/document'.$templateData['path']);
242 242
 
243 243
             $image = $template->getImage();
244 244
             if (!empty($image)) {
245 245
                 $templateItem['image'] = api_get_path(WEB_COURSE_PATH)
246
-                    . $courseDirectory . '/upload/template_thumbnails/' . $template->getImage();
246
+                    . $courseDirectory.'/upload/template_thumbnails/'.$template->getImage();
247 247
             }
248 248
 
249 249
             $templateList[] = $templateItem;
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Editor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
                 return $var ? 'true' : 'false'; // Lowercase necessary!
129 129
             case 'integer':
130 130
             case 'double':
131
-                return (string)$var;
131
+                return (string) $var;
132 132
             case 'resource':
133 133
             case 'string':
134 134
                 return '"'.str_replace(
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Editor/Connector.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             'root_sys' => api_get_path(SYS_PATH),
52 52
             'sys_root' => api_get_path(SYS_PATH), // just an alias
53 53
             'sys_course_path' => api_get_path(SYS_COURSE_PATH),
54
-         //   'sys_config_path' => $app['path.config'],
54
+            //   'sys_config_path' => $app['path.config'],
55 55
             'path.temp' => api_get_path(SYS_ARCHIVE_PATH),
56 56
             //'sys_log_path' => $app['path.logs']
57 57
         );
@@ -325,9 +325,9 @@  discard block
 block discarded – undo
325 325
      **/
326 326
     public function access($attr, $path, $data, $volume)
327 327
     {
328
-    	return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)
329
-    		? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true
330
-    		:  null;                                    // else elFinder decide it itself
328
+        return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)
329
+            ? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true
330
+            :  null;                                    // else elFinder decide it itself
331 331
     }
332 332
 
333 333
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
     {
328 328
     	return strpos(basename($path), '.') === 0       // if file/folder begins with '.' (dot)
329 329
     		? !($attr == 'read' || $attr == 'write')    // set read+write to false, other (locked+hidden) set to true
330
-    		:  null;                                    // else elFinder decide it itself
330
+    		:  null; // else elFinder decide it itself
331 331
     }
332 332
 
333 333
     /**
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Component/Filesystem/Data.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,13 +86,13 @@
 block discarded – undo
86 86
         return $this->get($file);
87 87
     }
88 88
 
89
-     /**
90
-     * Gets a file from the data/courses/MATHS/scorm directory
91
-     * @param string $courseCode
92
-     * @param string $file
93
-      *
94
-     * @return SplFileInfo
95
-     */
89
+        /**
90
+         * Gets a file from the data/courses/MATHS/scorm directory
91
+         * @param string $courseCode
92
+         * @param string $file
93
+         *
94
+         * @return SplFileInfo
95
+         */
96 96
     public function getCourseScormDocument($courseCode, $file)
97 97
     {
98 98
         $file = 'courses/'.$courseCode.'/scorm/'.$file;
Please login to merge, or discard this patch.