public/main/create_course/add_course.php
Variable "terms_and_conditions_url" is not in valid camel caps format Open
Open
if (!empty($terms_and_conditions_url)) {
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if ($course_validation_feature) {
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$wanted_code = CourseManager::generate_course_code(
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tool_name = $course_validation_feature ? get_lang('Create a course request') : get_lang('Add a new course');
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
$course_validation_feature = false;
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if ($course_validation_feature) {
- Exclude checks
Variable "link_terms_and_conditions" is not in valid camel caps format Open
Open
$form->addElement('label', null, $link_terms_and_conditions);
- Exclude checks
Variable "_user" is not in valid camel caps format Open
Open
if (isset($_user['language']) && '' != $_user['language']) {
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$target_audience = $course_values['target_audience'];
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
$allowed_picture_types = api_get_supported_image_extensions(false);
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$exemplary_content = !empty($course_values['exemplary_content']);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$form->addElement('header', $tool_name);
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
true);
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
$tool_name = $course_validation_feature ? get_lang('Create a course request') : get_lang('Add a new course');
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Open
$tpl = new Template($tool_name);
- Exclude checks
Variable "link_terms_and_conditions" is not in valid camel caps format Open
Open
$link_terms_and_conditions = '
- Exclude checks
Variable "_user" is not in valid camel caps format Open
Open
if (isset($_user['language']) && '' != $_user['language']) {
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$course_values = $form->exportValues();
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$title = $course_values['title'];
- Exclude checks
Variable "exemplary_content" is not in valid camel caps format Open
Open
$exemplary_content = !empty($course_values['exemplary_content']);
- Exclude checks
Variable "terms_and_conditions_url" is not in valid camel caps format Open
Open
$terms_and_conditions_url = trim(
- Exclude checks
Variable "link_terms_and_conditions" is not in valid camel caps format Open
Open
$link_terms_and_conditions .= Display::url(
- Exclude checks
Variable "terms_and_conditions_url" is not in valid camel caps format Open
Open
['onclick' => "javascript:MM_openBrWindow('$terms_and_conditions_url', 'Conditions', 'scrollbars=yes, width=800');"]
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$course_language = $course_values['course_language'];
- Exclude checks
Variable "terms_and_conditions_url" is not in valid camel caps format Open
Open
$terms_and_conditions_url = api_get_path(WEB_CODE_PATH).'auth/inscription.php?legal';
- Exclude checks
Variable "category_code" is not in valid camel caps format Open
Open
$category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$objetives = $course_values['objetives'];
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$wanted_code = $course_values['wanted_code'];
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
$allowed_picture_types
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if ($course_validation_feature) {
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$description = $course_values['description'];
- Exclude checks
Variable "target_audience" is not in valid camel caps format Open
Open
$target_audience = $course_values['target_audience'];
- Exclude checks
Variable "course_code_ok" is not in valid camel caps format Open
Open
$course_code_ok = !CourseManager::course_code_exists($wanted_code);
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
$course_validation_feature = true;
- Exclude checks
Variable "terms_and_conditions_url" is not in valid camel caps format Open
Open
if (empty($terms_and_conditions_url)) {
- Exclude checks
Variable "_user" is not in valid camel caps format Open
Open
$values['course_language'] = $_user['language'];
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$wanted_code = $course_values['wanted_code'];
- Exclude checks
Variable "course_language" is not in valid camel caps format Open
Open
$course_language = $course_values['course_language'];
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
if ('' == $wanted_code) {
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if (!$course_validation_feature) {
- Exclude checks
Variable "allowed_picture_types" is not in valid camel caps format Open
Open
get_lang('Only PNG, JPG or GIF images allowed').' ('.implode(',', $allowed_picture_types).')',
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
$form->addButtonCreate($course_validation_feature ? get_lang('Create this course request') : get_lang('Create this course'));
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$category_code = isset($course_values['category_id']) ? (string) $course_values['category_id'] : '';
- Exclude checks
Variable "course_language" is not in valid camel caps format Open
Open
$course_language,
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$course_code_ok = !CourseManager::course_code_exists($wanted_code);
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$params['gradebook_model_id'] = isset($course_values['gradebook_model_id']) ? $course_values['gradebook_model_id'] : null;
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$wanted_code,
- Exclude checks
Variable "category_code" is not in valid camel caps format Open
Open
$category_code,
- Exclude checks
Variable "course_request_info" is not in valid camel caps format Open
Open
$message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('Your request for a new course has been sent successfully. You may receive a reply soon, within one or two days.');
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if (!$course_validation_feature) {
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$params['wanted_code'] = $wanted_code;
- Exclude checks
Variable "exemplary_content" is not in valid camel caps format Open
Open
$exemplary_content
- Exclude checks
Variable "course_request_info" is not in valid camel caps format Open
Open
$course_request_info = CourseRequestManager::get_course_request_info($request_id);
- Exclude checks
Variable "course_code_ok" is not in valid camel caps format Open
Open
$course_code_ok = !CourseRequestManager::course_code_exists($wanted_code);
- Exclude checks
Variable "course_language" is not in valid camel caps format Open
Open
$params['course_language'] = $course_language;
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$file->setCrop($course_values['picture_crop_result_for_resource']);
- Exclude checks
Variable "course_validation_feature" is not in valid camel caps format Open
Open
if (!$course_validation_feature) {
- Exclude checks
Variable "request_id" is not in valid camel caps format Open
Open
$request_id = CourseRequestManager::create_course_request(
- Exclude checks
Variable "target_audience" is not in valid camel caps format Open
Open
$target_audience,
- Exclude checks
Variable "request_id" is not in valid camel caps format Open
Open
if ($request_id) {
- Exclude checks
Variable "course_request_info" is not in valid camel caps format Open
Open
$message = (is_array($course_request_info) ? '<strong>'.$course_request_info['code'].'</strong> : ' : '').get_lang('Your request for a new course has been sent successfully. You may receive a reply soon, within one or two days.');
- Exclude checks
Variable "exemplary_content" is not in valid camel caps format Open
Open
$params['exemplary_content'] = $exemplary_content;
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$params['gradebook_model_id'] = isset($course_values['gradebook_model_id']) ? $course_values['gradebook_model_id'] : null;
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$params['course_template'] = isset($course_values['course_template']) ? $course_values['course_template'] : '';
- Exclude checks
Variable "course_values" is not in valid camel caps format Open
Open
$params['course_template'] = isset($course_values['course_template']) ? $course_values['course_template'] : '';
- Exclude checks
Variable "wanted_code" is not in valid camel caps format Open
Open
$course_code_ok = !CourseRequestManager::course_code_exists($wanted_code);
- Exclude checks
Variable "course_code_ok" is not in valid camel caps format Open
Open
if ($course_code_ok) {
- Exclude checks
Variable "request_id" is not in valid camel caps format Open
Open
$course_request_info = CourseRequestManager::get_course_request_info($request_id);
- Exclude checks
Multi-line function call not indented correctly; expected 0 spaces but found 4 Open
Open
true);
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
Open
true);
- Exclude checks