@@ -15,7 +15,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -47,7 +47,7 @@ |
||
| 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; |
@@ -464,7 +464,7 @@ discard block |
||
| 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 |
||
| 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)); |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -25,8 +25,8 @@ |
||
| 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 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], |
| 55 | 55 | ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'], |
| 56 | 56 | ['Link', 'Unlink', 'Anchor', 'Glossary'], |
| 57 | - ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath',], |
|
| 57 | + ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath', ], |
|
| 58 | 58 | '/', |
| 59 | 59 | ['Table', '-', 'CreateDiv'], |
| 60 | 60 | ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
@@ -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'], |
@@ -18,8 +18,8 @@ |
||
| 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 | '/', |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | return [ |
| 91 | 91 | ['Save', 'NewPage', 'Templates', '-', 'PasteFromWord'], |
| 92 | 92 | ['Undo', 'Redo'], |
| 93 | - ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
| 93 | + ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
| 94 | 94 | ['BulletedList', 'NumberedList', 'HorizontalRule'], |
| 95 | 95 | ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'], |
| 96 | 96 | ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'TextColor', 'BGColor', 'Source'], |