@@ -89,7 +89,7 @@ |
||
| 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'], |
@@ -16,13 +16,13 @@ |
||
| 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 | '/', |
@@ -56,11 +56,11 @@ discard block |
||
| 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 |
||
| 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'], |
@@ -145,14 +145,14 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -128,7 +128,7 @@ |
||
| 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( |
@@ -327,7 +327,7 @@ |
||
| 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 | /** |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } elseif ($vimeoMatch) { |
| 66 | 66 | $extra .= ' webkitAllowFullScreen mozallowfullscreen allowFullScreen'; |
| 67 | 67 | } |
| 68 | - return '<iframe ' . $matches[1] . $extra . '></iframe>'; |
|
| 68 | + return '<iframe '.$matches[1].$extra.'></iframe>'; |
|
| 69 | 69 | } else { |
| 70 | 70 | return ''; |
| 71 | 71 | } |
@@ -201,7 +201,7 @@ |
||
| 201 | 201 | public function getWebIconPath() |
| 202 | 202 | { |
| 203 | 203 | if ($this->getIcon()) { |
| 204 | - return api_get_path(WEB_UPLOAD_PATH) . "badges/{$this->getIcon()}"; |
|
| 204 | + return api_get_path(WEB_UPLOAD_PATH)."badges/{$this->getIcon()}"; |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | return \Display::return_icon('badges-default.png', null, null, ICON_SIZE_HUGE, null, true); |
@@ -470,7 +470,7 @@ |
||
| 470 | 470 | Criteria::expr()->eq("user", $user) |
| 471 | 471 | ); |
| 472 | 472 | |
| 473 | - if (!is_null($status)) { |
|
| 473 | + if (!is_null($status)) { |
|
| 474 | 474 | $criteria->andWhere( |
| 475 | 475 | Criteria::expr()->eq("status", $status) |
| 476 | 476 | ); |