Skip to content

Conversation

@christianbeeznest
Copy link
Contributor

No description provided.

if ($rel && $rel->getQuiz()) {
$quiz = $rel->getQuiz();
// Allow if the user has VIEW rights on the quiz
if ($this->security->isGranted('VIEW', $quiz)) {

Choose a reason for hiding this comment

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

Avoid deeply nested control flow statements.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit cad11c3 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@NicoDucou NicoDucou merged commit f21ca4c into chamilo:master May 21, 2025
2 of 8 checks passed
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.

2 participants