public/main/work/upload_from_template.php
Variable "course_info" is not in valid camel caps format Open
Open
$course_info = api_get_course_info();
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$workInfo = get_work_data_by_id($work_id);
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
10
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$form->addElement('hidden', 'id', $work_id);
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
protectWork($course_info, $work_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
protectWork($course_info, $work_id);
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
$student_can_edit_in_session = api_is_allowed_to_session_edit(false, true);
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
api_get_utc_datetime(),
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_info,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$work_id = isset($_REQUEST['id']) ? (int) ($_REQUEST['id']) : null;
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
$is_allowed_to_edit = api_is_allowed_to_edit();
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id = api_get_group_id();
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
$documentTemplateData = getDocumentTemplateFromWork($work_id, $course_info, $documentId);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
api_get_self().'?'.api_get_cidreq().'&id='.$work_id,
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
if ($student_can_edit_in_session && $check) {
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "is_allowed_to_edit" is not in valid camel caps format Open
Open
if ($is_allowed_to_edit) {
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (empty($work_id)) {
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code);
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 4 Open
Open
);
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
if (empty($session_id)) {
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
if (false == $is_course_member) {
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
Display::addFlash($error_message);
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
Open
$current_course_tool = TOOL_STUDENTPUBLICATION;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "course_code" is not in valid camel caps format Open
Open
$course_code = $course_info['code'];
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
Open
$session_id = api_get_session_id();
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
0,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
header('Location: '.api_get_path(WEB_CODE_PATH).'work/'.$script.'?'.api_get_cidreq().'&id='.$work_id);
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$documentTemplateData = getDocumentTemplateFromWork($work_id, $course_info, $documentId);
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id,
- Exclude checks
Variable "student_can_edit_in_session" is not in valid camel caps format Open
Open
} elseif ($student_can_edit_in_session && false == $validationStatus['has_ended']) {
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = $is_course_member || api_is_platform_admin();
- Exclude checks
Variable "error_message" is not in valid camel caps format Open
Open
$error_message = processWorkForm(
- Exclude checks
Variable "group_id" is not in valid camel caps format Open
Open
$group_id,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (api_resource_is_locked_by_gradebook($work_id, LINK_STUDENTPUBLICATION)) {
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = CourseManager::is_user_subscribed_in_course($user_id, $course_code, true, $session_id);
- Exclude checks
Variable "is_course_member" is not in valid camel caps format Open
Open
$is_course_member = $is_course_member || api_is_platform_admin();
- Exclude checks
Variable "user_id" is not in valid camel caps format Open
Open
$user_id = api_get_user_id();
- Exclude checks
Variable "course_info" is not in valid camel caps format Open
Open
$course_code = $course_info['code'];
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
'url' => api_get_path(WEB_CODE_PATH).'work/work_list.php?'.api_get_cidreq().'&id='.$work_id,
- Exclude checks
Variable "work_id" is not in valid camel caps format Open
Open
if (!empty($work_id)) {
- Exclude checks
Multi-line function call not indented correctly; expected 8 spaces but found 4 Open
Open
);
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
10
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
0,
- Exclude checks
Multi-line function call not indented correctly; expected 12 spaces but found 8 Open
Open
api_get_utc_datetime(),
- Exclude checks