-
Notifications
You must be signed in to change notification settings - Fork 502
[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
base: master
Are you sure you want to change the base?
[Grenoble] Améliorer le lien de création de groupe à partir d'une classe, refs #5774 #1709 #1710 #6295
Conversation
* @return array | ||
* @throws \Doctrine\DBAL\DBALException | ||
*/ | ||
public static function create_usergroup_consistent_groups(int $category_id = 0, array $classIds = []): array |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Code Climate has analyzed commit 54babdc and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.