-
Notifications
You must be signed in to change notification settings - Fork 502
Plugin: Add config-based control for global conference roles visibility in BBB - refs #3498 #6336
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?
Conversation
Code Climate has analyzed commit 00569a0 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
} | ||
} | ||
|
||
return false; |
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.
Avoid too many return
statements within this method.
break; | ||
case STUDENT_BOSS: | ||
if (api_is_student_boss()) { | ||
return true; |
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.
Avoid too many return
statements within this method.
@@ -159,6 +159,42 @@ public static function updateCourseFieldInAllCourses(string $variable, string $v | |||
$entityManager->flush(); | |||
} | |||
|
|||
public function canCurrentUserSeeGlobalConferenceLink(): bool |
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 canCurrentUserSeeGlobalConferenceLink
has 29 lines of code (exceeds 25 allowed). Consider refactoring.
@@ -159,6 +159,42 @@ public static function updateCourseFieldInAllCourses(string $variable, string $v | |||
$entityManager->flush(); | |||
} | |||
|
|||
public function canCurrentUserSeeGlobalConferenceLink(): bool |
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 canCurrentUserSeeGlobalConferenceLink
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
No description provided.