@@ -219,7 +219,7 @@ |
||
219 | 219 | */ |
220 | 220 | public function getEntityIdentifier() |
221 | 221 | { |
222 | - return 'GenjFaqBundle:Question:' . $this->getId(); |
|
222 | + return 'GenjFaqBundle:Question:'.$this->getId(); |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * See facebook section of the auth.conf.php file |
23 | 23 | */ |
24 | 24 | |
25 | -require dirname(__FILE__) . '/../../../app/config/auth.conf.php'; |
|
25 | +require dirname(__FILE__).'/../../../app/config/auth.conf.php'; |
|
26 | 26 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | api_not_allowed(true); |
17 | 17 | } |
18 | 18 | |
19 | -$interbreadcrumb[] = array ('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
19 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | |
22 | 22 | $this_section = SECTION_TRACKING; |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | |
43 | 43 | //Column config |
44 | 44 | $column_model = array( |
45 | - array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | - array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | - array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left','sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | - array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
49 | - array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
50 | - array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left','sortable'=>'false'), |
|
51 | - array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left','sortable'=>'false') |
|
45 | + array('name'=>'course', 'index'=>'title', 'width'=>'180', 'align'=>'left', 'wrap_cell' => 'true'), |
|
46 | + array('name'=>'user', 'index'=>'user', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
47 | + array('name'=>'email', 'index'=>'email', 'width'=>'100', 'align'=>'left', 'sortable'=>'false', 'wrap_cell' => 'true'), |
|
48 | + array('name'=>'time', 'index'=>'time', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
49 | + array('name'=>'certificate', 'index'=>'certificate', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
50 | + array('name'=>'progress_100', 'index'=>'progress_100', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'), |
|
51 | + array('name'=>'progress', 'index'=>'progress', 'width'=>'50', 'align'=>'left', 'sortable'=>'false') |
|
52 | 52 | ); |
53 | 53 | |
54 | 54 | if (!empty($extra_fields)) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | if (api_is_student_boss()) { |
70 | - $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left','sortable'=>'false'); |
|
70 | + $column_model[] = array('name'=>'group', 'index'=>'group', 'width'=>'50', 'align'=>'left', 'sortable'=>'false'); |
|
71 | 71 | $columns[] = get_lang('Group'); |
72 | 72 | } |
73 | 73 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $htmlHeadXtra[] = '<script> |
80 | 80 | $(function() { |
81 | - '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
81 | + '.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
82 | 82 | jQuery("#user_course_report").jqGrid("navGrid","#user_course_report_pager",{ |
83 | 83 | view:false, |
84 | 84 | edit:false, |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | if (api_is_student_boss()) { |
103 | 103 | $actions .= Display::url( |
104 | 104 | Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), |
105 | - api_get_path(WEB_CODE_PATH) . "auth/my_progress.php" |
|
105 | + api_get_path(WEB_CODE_PATH)."auth/my_progress.php" |
|
106 | 106 | ); |
107 | 107 | $actions .= Display::url( |
108 | 108 | Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), |
109 | - api_get_path(WEB_CODE_PATH) . "mySpace/student.php" |
|
109 | + api_get_path(WEB_CODE_PATH)."mySpace/student.php" |
|
110 | 110 | ); |
111 | 111 | $actions .= Display::url( |
112 | 112 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | [], |
120 | 120 | ICON_SIZE_MEDIUM |
121 | 121 | ), |
122 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
122 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
123 | 123 | ); |
124 | 124 | } |
125 | 125 | |
@@ -130,13 +130,13 @@ discard block |
||
130 | 130 | } |
131 | 131 | $content .= Display::url( |
132 | 132 | get_lang("CompanyReportResumed"), |
133 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports_resumed.php", |
|
133 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports_resumed.php", |
|
134 | 134 | array( |
135 | 135 | 'class' => 'btn btn-success' |
136 | 136 | ) |
137 | 137 | ); |
138 | 138 | $content .= '</div>'; |
139 | -$content .= '<h1 class="page-header">' . get_lang('CompanyReport') . '</h1>'; |
|
139 | +$content .= '<h1 class="page-header">'.get_lang('CompanyReport').'</h1>'; |
|
140 | 140 | $content .= Display::grid_html('user_course_report'); |
141 | 141 | |
142 | 142 | $tpl = new Template($tool_name); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | api_not_allowed(true); |
16 | 16 | } |
17 | 17 | |
18 | -$interbreadcrumb[] = array('url' => api_is_student_boss()?'#':'index.php', 'name' => get_lang('MySpace')); |
|
18 | +$interbreadcrumb[] = array('url' => api_is_student_boss() ? '#' : 'index.php', 'name' => get_lang('MySpace')); |
|
19 | 19 | |
20 | 20 | $tool_name = get_lang('Report'); |
21 | 21 | $this_section = SECTION_TRACKING; |
@@ -89,15 +89,15 @@ discard block |
||
89 | 89 | if (api_is_student_boss()) { |
90 | 90 | $actions .= Display::url( |
91 | 91 | Display::return_icon('stats.png', get_lang('MyStats'), '', ICON_SIZE_MEDIUM), |
92 | - api_get_path(WEB_CODE_PATH) . "auth/my_progress.php" |
|
92 | + api_get_path(WEB_CODE_PATH)."auth/my_progress.php" |
|
93 | 93 | ); |
94 | 94 | $actions .= Display::url( |
95 | 95 | Display::return_icon('user.png', get_lang('Students'), array(), ICON_SIZE_MEDIUM), |
96 | - api_get_path(WEB_CODE_PATH) . "mySpace/student.php" |
|
96 | + api_get_path(WEB_CODE_PATH)."mySpace/student.php" |
|
97 | 97 | ); |
98 | 98 | $actions .= Display::url( |
99 | 99 | Display::return_icon("statistics.png", get_lang("CompanyReport"), array(), ICON_SIZE_MEDIUM), |
100 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php" |
|
100 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php" |
|
101 | 101 | ); |
102 | 102 | $actions .= Display::url( |
103 | 103 | Display::return_icon( |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | [], |
107 | 107 | ICON_SIZE_MEDIUM |
108 | 108 | ), |
109 | - api_get_path(WEB_CODE_PATH) . "gradebook/certificate_report.php" |
|
109 | + api_get_path(WEB_CODE_PATH)."gradebook/certificate_report.php" |
|
110 | 110 | ); |
111 | 111 | } |
112 | 112 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (!api_is_student_boss()) { |
120 | 120 | $content .= Display::url( |
121 | 121 | get_lang("CompanyReport"), |
122 | - api_get_path(WEB_CODE_PATH) . "mySpace/company_reports.php", |
|
122 | + api_get_path(WEB_CODE_PATH)."mySpace/company_reports.php", |
|
123 | 123 | array( |
124 | 124 | 'class' => 'btn btn-success' |
125 | 125 | ) |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | $content .= '</div>'; |
130 | -$content .= '<h1 class="page-header">' . get_lang('CompanyReportResumed') . '</h1>'; |
|
130 | +$content .= '<h1 class="page-header">'.get_lang('CompanyReportResumed').'</h1>'; |
|
131 | 131 | $content .= Display::grid_html('user_course_report'); |
132 | 132 | |
133 | 133 | $tpl = new Template($tool_name); |
@@ -38,9 +38,9 @@ |
||
38 | 38 | api_not_allowed(true); |
39 | 39 | } |
40 | 40 | |
41 | -$courseDir = $_course['path'] . "/document"; |
|
41 | +$courseDir = $_course['path']."/document"; |
|
42 | 42 | $sys_course_path = api_get_path(SYS_COURSE_PATH); |
43 | -$base_work_dir = $sys_course_path . $courseDir; |
|
43 | +$base_work_dir = $sys_course_path.$courseDir; |
|
44 | 44 | $noPHP_SELF = true; |
45 | 45 | $max_filled_space = DocumentManager::get_course_quota(); |
46 | 46 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $doc_url = str_replace(' ', '+', $doc_url); |
40 | 40 | $doc_url = str_replace(array('../', '\\..', '\\0', '..\\'), array('', '', '', ''), $doc_url); //echo $doc_url; |
41 | 41 | |
42 | -if (strpos($doc_url,'../') || strpos($doc_url,'/..')) { |
|
42 | +if (strpos($doc_url, '../') || strpos($doc_url, '/..')) { |
|
43 | 43 | $doc_url = ''; |
44 | 44 | } |
45 | 45 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | if (!$alreadyInstalled) { |
48 | 48 | $global_error_code = 2; |
49 | 49 | // The system has not been installed yet. |
50 | - require_once __DIR__ . '/../inc/global_error_message.inc.php'; |
|
50 | + require_once __DIR__.'/../inc/global_error_message.inc.php'; |
|
51 | 51 | die(); |
52 | 52 | } |
53 | 53 | } |
@@ -158,9 +158,9 @@ discard block |
||
158 | 158 | $request_url_root = ''; |
159 | 159 | if (empty($_SERVER['HTTP_HOST'])) { |
160 | 160 | if (empty($_SERVER['SERVER_NAME'])) { |
161 | - $request_url_root = $protocol . 'localhost/'; |
|
161 | + $request_url_root = $protocol.'localhost/'; |
|
162 | 162 | } else { |
163 | - $request_url_root = $protocol . $_SERVER['SERVER_NAME'] . '/'; |
|
163 | + $request_url_root = $protocol.$_SERVER['SERVER_NAME'].'/'; |
|
164 | 164 | } |
165 | 165 | } else { |
166 | 166 | $request_url_root = $protocol.$_SERVER['HTTP_HOST'].'/'; |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | } |
455 | 455 | |
456 | 456 | if (!empty($language_priority1) && api_get_language_from_type($language_priority1) !== false) { |
457 | - $language_interface = api_get_language_from_type($language_priority1); |
|
457 | + $language_interface = api_get_language_from_type($language_priority1); |
|
458 | 458 | } else { |
459 | 459 | if (isset($_course['language'])) { |
460 | 460 | $language_interface = $_course['language']; |
@@ -25,16 +25,16 @@ |
||
25 | 25 | $audioFileName = Database::escape_string($audioFileName); |
26 | 26 | $audioFileName = api_replace_dangerous_char($audioFileName); |
27 | 27 | $audioFileName = disable_dangerous_file($audioFileName); |
28 | -$audioDir = Security::remove_XSS($audioDir); |
|
28 | +$audioDir = Security::remove_XSS($audioDir); |
|
29 | 29 | |
30 | -$dirBaseDocuments = api_get_path(SYS_COURSE_PATH) . $courseInfo['path'] . '/document'; |
|
31 | -$saveDir = $dirBaseDocuments . $audioDir; |
|
30 | +$dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document'; |
|
31 | +$saveDir = $dirBaseDocuments.$audioDir; |
|
32 | 32 | |
33 | 33 | if (!is_dir($saveDir)) { |
34 | 34 | DocumentManager::createDefaultAudioFolder($courseInfo); |
35 | 35 | } |
36 | 36 | |
37 | -$documentPath = $saveDir . '/' . $audioFileName; |
|
37 | +$documentPath = $saveDir.'/'.$audioFileName; |
|
38 | 38 | |
39 | 39 | $file['file'] = $file; |
40 | 40 |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | // Do not use here check Fileinfo method because return: text/plain |
49 | 49 | |
50 | 50 | $dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document'; |
51 | -$saveDir = $dirBaseDocuments . $wamidir; |
|
51 | +$saveDir = $dirBaseDocuments.$wamidir; |
|
52 | 52 | |
53 | 53 | if (!is_dir($saveDir)) { |
54 | 54 | DocumentManager::createDefaultAudioFolder($_course); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ob_start(); |
89 | 89 | |
90 | 90 | // Strangely the file path changes with a double extension |
91 | -copy($documentPath, $documentPath . '.wav'); |
|
91 | +copy($documentPath, $documentPath.'.wav'); |
|
92 | 92 | |
93 | 93 | $documentData = DocumentManager::upload_document( |
94 | 94 | $file, |