Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradebook: Fixes and enhancements for certificate handling in documents and gradebook - #5074 #5116

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

@@ -1200,7 +1200,7 @@ public static function replace_user_info_into_html(
$my_content_html = $repo->getResourceFileContent($doc);
$all_user_info = self::get_all_info_to_certificate(
$user_id,
$courseInfo,
$course_id,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable "course_id" is not in valid camel caps format

@@ -1230,11 +1230,12 @@
*
* @return array
*/
public static function get_all_info_to_certificate($user_id, $course_info, $sessionId, $is_preview = false)
public static function get_all_info_to_certificate($user_id, $courseId, $sessionId, $is_preview = false)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method name "DocumentManager::get_all_info_to_certificate" is not in camel caps format

@@ -1230,11 +1230,12 @@
*
* @return array
*/
public static function get_all_info_to_certificate($user_id, $course_info, $sessionId, $is_preview = false)
public static function get_all_info_to_certificate($user_id, $courseId, $sessionId, $is_preview = false)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable "user_id" is not in valid camel caps format

@@ -1230,11 +1230,12 @@
*
* @return array
*/
public static function get_all_info_to_certificate($user_id, $course_info, $sessionId, $is_preview = false)
public static function get_all_info_to_certificate($user_id, $courseId, $sessionId, $is_preview = false)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable "is_preview" is not in valid camel caps format

{
$info_list = [];
$user_id = (int) $user_id;
$sessionId = (int) $sessionId;
$course_info = api_get_course_info_by_id($courseId);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable "course_info" is not in valid camel caps format

Copy link

codeclimate bot commented Jan 26, 2024

Code Climate has analyzed commit c457ad2 and detected 29 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 28
Clarity 1

View more on Code Climate.

@christianbeeznest christianbeeznest merged commit 240154a into chamilo:master Jan 26, 2024
3 of 7 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant