Skip to content

[Grenoble] Améliorer le lien de création de groupe à partir d'une classe, refs #5774 #1709 #1710 #6295

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

eristich
Copy link
Contributor

No description provided.

* @return array
* @throws \Doctrine\DBAL\DBALException
*/
public static function create_usergroup_consistent_groups(int $category_id = 0, array $classIds = []): array
Copy link

Choose a reason for hiding this comment

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

Method create_usergroup_consistent_groups has 63 lines of code (exceeds 25 allowed). Consider refactoring.

* @return array
* @throws \Doctrine\DBAL\DBALException
*/
public static function create_usergroup_consistent_groups(int $category_id = 0, array $classIds = []): array
Copy link

Choose a reason for hiding this comment

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

Function create_usergroup_consistent_groups has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.

*
* @return array
*/
public static function create_class_groups($categoryId)
public static function create_class_groups(int $categoryId, array $classIds = []): array
Copy link

Choose a reason for hiding this comment

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

Function create_class_groups has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

Copy link

codeclimate bot commented May 15, 2025

Code Climate has analyzed commit 54babdc and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

View more on Code Climate.

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